Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Last Update for Installed extensions #91

Open
disshishkov opened this issue Sep 29, 2014 · 1 comment
Open

Last Update for Installed extensions #91

disshishkov opened this issue Sep 29, 2014 · 1 comment

Comments

@disshishkov
Copy link
Contributor

Currently Last Update sort option doesn't work for installed extension, because Brackets is not including update date into layout for Installed tab.
What do you thing about modify http://brackets-rating.herokuapp.com/ratings/ that it returns update date as well. I made some tests with timestamp but it's published date and we can not to use it.

mutation.js

....
forks = registryEntry ? registryEntry.forks : 'NA',
timestamp = registryEntry ? registryEntry.timestamp : '1970-01-01',
....
....
$t.attr('data-extension-forks', forks);
$t.attr('data-extension-timestamp', timestamp);
....
....
'update': function(elements){
      return _.sortBy(elements, function(el){
            return -new Date($(el).attr("data-extension-timestamp"));
       });
},
....
@dnbard
Copy link
Owner

dnbard commented Sep 29, 2014

Hi. Nice proposition. I'll do it when have enough time ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants