Revision b02623ff
Corrections jslint.
git-svn-id: https://vigilo-dev.si.c-s.fr/svn@6391 b22e2e97-25c9-44ff-b637-2e5ceca36478
vigigraph/public/js/graph.js | ||
---|---|---|
83 | 83 |
label: _("Export to CSV"), |
84 | 84 |
image: app_path + 'images/document-export.png', |
85 | 85 |
tooltip: _("Export the content of this graph to CSV") |
86 |
}) |
|
86 |
});
|
|
87 | 87 |
|
88 | 88 |
new Request.JSON({ |
89 | 89 |
url: app_path + 'rpc/getIndicators', |
... | ... | |
222 | 222 |
this.updateGraph(); |
223 | 223 |
this.graph_window.open(); |
224 | 224 |
|
225 |
this.refresh_button.setActive(parseInt(this.options.autoRefresh)); |
|
225 |
this.refresh_button.setActive(parseInt(this.options.autoRefresh, 10));
|
|
226 | 226 |
|
227 | 227 |
var onClose = function () { |
228 | 228 |
if (this.destroyed) return; |
... | ... | |
256 | 256 |
}, |
257 | 257 |
|
258 | 258 |
updateZoom: function (factor) { |
259 |
this.options.duration = parseInt(this.options.duration * factor);
|
|
259 |
this.options.duration = parseInt(this.options.duration, 10) * factor;
|
|
260 | 260 |
// Période minimale d'affichage : 1 minute. |
261 | 261 |
if (this.options.duration < 60) |
262 | 262 |
this.options.duration = 60; |
... | ... | |
287 | 287 |
start: start, |
288 | 288 |
end: start + this.options.duration, |
289 | 289 |
nocache: (new Date() / 1) |
290 |
}) |
|
290 |
});
|
|
291 | 291 |
|
292 | 292 |
if (menuItem.options.indicator) |
293 | 293 |
uri.setData({ds: menuItem.options.name}, true); |
... | ... | |
307 | 307 |
duration: params.duration, |
308 | 308 |
graph: params.graphtemplate, |
309 | 309 |
nocache: params.nocache |
310 |
} |
|
310 |
};
|
|
311 | 311 |
}, |
312 | 312 |
|
313 | 313 |
print: function () { |
... | ... | |
354 | 354 |
|
355 | 355 |
showAlert: function() { |
356 | 356 |
this.alert_indicator.setStyle("display", "block"); |
357 |
var zindex = parseInt(this.graph_window.domObj.getStyle("z-index")) + 1; |
|
357 |
var zindex = parseInt(this.graph_window.domObj.getStyle("z-index"), 10) + 1;
|
|
358 | 358 |
this.alert_indicator.setStyle("z-index", zindex); |
359 | 359 |
return; |
360 | 360 |
}, |
... | ... | |
449 | 449 |
graph: window.graphs[0].graph |
450 | 450 |
}); |
451 | 451 |
} |
452 |
} |
|
452 |
};
|
|
453 | 453 |
|
454 | 454 |
var hash_change_detector = function() { |
455 | 455 |
var new_fragment; |
vigigraph/public/js/loader.js | ||
---|---|---|
51 | 51 |
this.addEvent(event, loader.hide.bind(loader)); |
52 | 52 |
}, this); |
53 | 53 |
} |
54 |
}) |
|
54 |
}); |
vigigraph/public/js/toolbar.js | ||
---|---|---|
168 | 168 |
this.graph_picker.getLabel() |
169 | 169 |
); |
170 | 170 |
}.bind(this) |
171 |
}) |
|
171 |
});
|
|
172 | 172 |
|
173 | 173 |
// Remplissage de la barre d'outils |
174 | 174 |
this.jxtoolbar.add(this.global_refresh); |
vigigraph/public/js/tree.js | ||
---|---|---|
53 | 53 |
}); |
54 | 54 |
|
55 | 55 |
// Envoi de la requête |
56 |
if (!$chk(top_node)) |
|
57 |
if (!$defined(this.options.hostid)) |
|
56 |
if (!$chk(top_node)) {
|
|
57 |
if (!$defined(this.options.hostid)) {
|
|
58 | 58 |
req.get({parent_id: parent_node.options.data}); |
59 |
else |
|
59 |
} |
|
60 |
else { |
|
60 | 61 |
req.get({parent_id: parent_node.options.data, host_id: this.options.hostid}); |
61 |
else if (!$defined(this.options.hostid)) |
|
62 |
} |
|
63 |
} |
|
64 |
else if (!$defined(this.options.hostid)) { |
|
62 | 65 |
req.get(); |
63 |
else |
|
66 |
} |
|
67 |
else { |
|
64 | 68 |
req.get({host_id: this.options.hostid}); |
69 |
} |
|
65 | 70 |
}, |
66 | 71 |
|
67 | 72 |
/* Ajout d'un noeud à l'arbre */ |
Also available in: Unified diff