Skip to content
This repository was archived by the owner on Jun 27, 2020. It is now read-only.

Commit 6811506

Browse files
committed
Fixed js style errors
1 parent d13cca5 commit 6811506

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

django_netjsongraph/static/netjsongraph/js/visualize.js

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ django.jQuery(function($) {
55
visualize_url = $('.visualizelink').attr('data-url');
66

77
var d = new Date(),
8-
month = d.getMonth()+1,
8+
month = d.getMonth() + 1,
99
day = d.getDate(),
10-
default_date = (month<10? '0':'') + month + '/' +
11-
(day<10? '0':'') + day + '/' +
10+
default_date = (month < 10 ? '0': '') + month + '/' +
11+
(day < 10 ? '0': '') + day + '/' +
1212
d.getFullYear(),
1313
current_date = d.getFullYear() + '-' +
14-
(month<10? '0':'') + month + '-' +
15-
(day<10? '0':'') + day;
14+
(month < 10 ? '0': '') + month + '-' +
15+
(day < 10 ? '0': '') + day;
1616

1717
var openOverlay = function() {
1818
// show overlay
@@ -88,7 +88,7 @@ django.jQuery(function($) {
8888
date[2] = x;
8989
}
9090
date = date.join('-');
91-
graph_url = $('.switcher').attr('graph-url')+'?date='+date;
91+
graph_url = $('.switcher').attr('graph-url') + '?date=' + date;
9292
body = $('body');
9393
$.get(graph_url, function(html) {
9494
inner.html(html);
@@ -107,10 +107,6 @@ django.jQuery(function($) {
107107
e.preventDefault();
108108
getTopologyHistory();
109109
})
110-
}).
111-
error(function(xhr) {
112-
if (xhr.status == 400) {
113-
}
114-
});
110+
})
115111
}
116112
});

0 commit comments

Comments
 (0)