[SPIP][PLUGINS] v3.0-->v3.2
[lhc/web/www.git] / www / plugins-dist / statistiques / javascript / jquery.tflot.js
index 8703a9c..f8b6309 100644 (file)
                function zoomGraphique(graphique) {
                        pid = $(graphique).attr('id').substr(9);
 
-                       $(graphique).find('.graphResult').bind("plotselected", function (event, ranges) {
+                       $(graphique).find('.graphResult').on("plotselected", function (event, ranges) {
                                graph = $(event.target);
                                pid = graph.closest('.graphique').attr('id').substr(9);
 
                        if (vignette.length) {
 
                                // zoom depuis la miniature
-                               vignette.bind("plotselected", function (event, ranges) {
+                               vignette.on("plotselected", function (event, ranges) {
                                        graph = $(event.target);
                                        pid = graph.closest('.graphique').attr('id').substr(9);
                                        vignettesSelection[pid] = ranges;
                        };
                        $.extend(true, options, settings);
 
-                       $(graph).bind("plothover", function (event, pos, item) {
+                       $(graph).on("plothover", function (event, pos, item) {
                                $("#x").text(pos.x.toFixed(2));
                                $("#y").text(pos.y.toFixed(2));
                                graph = $(event.target);