mirror of https://gitee.com/bigwinds/arangodb
update checkboxes dynamically
This commit is contained in:
parent
38ce7df1a8
commit
40baf853f4
|
@ -22,7 +22,7 @@
|
|||
|
||||
<ul class="dropdown-menu interval-dropdown">
|
||||
<li class="nav-header">Update every:</li>
|
||||
<li><a><label class="radio"><input type="radio" name="updateInterval" id="every5seconds" value="5" checked>5 seconds</label></a></li>
|
||||
<li><a><label class="radio"><input type="radio" name="updateInterval" id="every5seconds" value="5">5 seconds</label></a></li>
|
||||
<li><a><label class="radio"><input type="radio" name="updateInterval" id="every15seconds" value="15">15 seconds</label></a></li>
|
||||
<li><a><label class="radio"><input type="radio" name="updateInterval" id="every30seconds" value="30">30 seconds</label></a></li>
|
||||
<li><a><label class="radio"><input type="radio" name="updateInterval" id="every60seconds" value="60">60 seconds</label></a></li>
|
||||
|
|
|
@ -69,6 +69,8 @@ var dashboardView = Backbone.View.extend({
|
|||
self.renderFigure(this);
|
||||
});
|
||||
|
||||
$('input[name=every'+self.updateInterval/1000 +']').attr('checked', true);
|
||||
|
||||
if (this.collection.models[0] === undefined) {
|
||||
this.collection.fetch({
|
||||
success: function() {
|
||||
|
@ -85,7 +87,6 @@ var dashboardView = Backbone.View.extend({
|
|||
self.calculateSeries();
|
||||
self.renderCharts();
|
||||
}
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue