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
+4 -4
View File
@@ -2,14 +2,14 @@
describe("Discourse.Report", function() {
function dateString(arg) {
return Date.create(arg, 'en').format('{yyyy}-{MM}-{dd}');
function dateString(days) {
return moment().subtract("days", days).format('YYYY-MM-DD');
}
function reportWithData(data) {
var arr = [];
data.each(function(val, index) {
arr.push({x: dateString(index + ' days ago'), y: val});
_.each(data,function(val,index) {
arr.push({x: dateString(index), y: val});
});
return Discourse.Report.create({ type: 'topics', data: arr });
}
-1
View File
@@ -11,7 +11,6 @@
//= require ../../app/assets/javascripts/external/jquery.ui.widget.js
//= require ../../app/assets/javascripts/external/handlebars-1.0.rc.4.js
//= require ../../app/assets/javascripts/external_production/ember.js
//= require ../../app/assets/javascripts/external_production/sugar-1.3.5.js
//= require ../../app/assets/javascripts/external_production/group-helper.js
// Pagedown customizations