removed sugar.js, port functionality to moment and underscore.js

bring in latest ace from local so we don't mess up with https
This commit is contained in:
Sam
2013-06-11 06:48:50 +10:00
parent eed5875505
commit fa8a84f20c
211 changed files with 1773 additions and 8914 deletions

View File

@ -9,7 +9,7 @@
Discourse.AdminDashboardController = Ember.Controller.extend({
loading: true,
versionCheck: null,
problemsCheckInterval: '1 minute ago',
problemsCheckMinutes: 1,
foundProblems: function() {
return(Discourse.User.current('admin') && this.get('problems') && this.get('problems').length > 0);
@ -33,9 +33,9 @@ Discourse.AdminDashboardController = Ember.Controller.extend({
c.set('problems', d.problems);
c.set('loadingProblems', false);
if( d.problems && d.problems.length > 0 ) {
c.problemsCheckInterval = '1 minute ago';
c.problemsCheckInterval = 1;
} else {
c.problemsCheckInterval = '10 minutes ago';
c.problemsCheckInterval = 10;
}
});
},