Project

General

Profile

Revision b02623ff

IDb02623ff22e8535e37c93d56a2ed581ee0f6733f
Parent 8416dde5
Child 6a7fa300

Added by Francois POIROTTE over 13 years ago

Corrections jslint.

git-svn-id: https://vigilo-dev.si.c-s.fr/svn@6391 b22e2e97-25c9-44ff-b637-2e5ceca36478

View differences:

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;

Also available in: Unified diff