Lint and fix JS files

This commit is contained in:
Faris Ansari
2017-05-30 12:54:42 +05:30
parent dae7721384
commit ab74ca7fff
138 changed files with 1280 additions and 1268 deletions

View File

@@ -19,7 +19,6 @@ erpnext.SupportAnalytics = frappe.views.GridReportWithPlot.extend({
init: function(wrapper) {
this._super({
title: __("Support Analtyics"),
page: wrapper,
parent: $(wrapper).find('.layout-main'),
page: wrapper.page,
doctypes: ["Issue", "Fiscal Year"],
@@ -67,7 +66,7 @@ erpnext.SupportAnalytics = frappe.views.GridReportWithPlot.extend({
$.each(frappe.report_dump.data["Issue"], function(i, d) {
var dateobj = dateutil.str_to_obj(d.creation);
var dateobj = frappe.datetime.str_to_obj(d.creation);
var date = d.creation.split(" ")[0];
var col = me.column_map[date];
if(col) {
@@ -77,17 +76,17 @@ erpnext.SupportAnalytics = frappe.views.GridReportWithPlot.extend({
total_closed[col.field] = flt(total_closed[col.field]) + 1;
days_to_close[col.field] = flt(days_to_close[col.field])
+ dateutil.get_diff(d.resolution_date, d.creation);
+ frappe.datetime.get_diff(d.resolution_date, d.creation);
hours_to_close[col.field] = flt(hours_to_close[col.field])
+ dateutil.get_hour_diff(d.resolution_date, d.creation);
+ frappe.datetime.get_hour_diff(d.resolution_date, d.creation);
}
if (d.first_responded_on) {
total_responded[col.field] = flt(total_responded[col.field]) + 1;
hours_to_respond[col.field] = flt(hours_to_respond[col.field])
+ dateutil.get_hour_diff(d.first_responded_on, d.creation);
+ frappe.datetime.get_hour_diff(d.first_responded_on, d.creation);
}
}
});