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:
@@ -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 });
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user