mirror of
https://github.com/grafana/grafana.git
synced 2025-02-03 12:11:09 -06:00
fix: firefox can now create region annotations, fixes #9638
This commit is contained in:
parent
b80b5e0317
commit
0c2aa91e61
7
public/vendor/flot/jquery.flot.js
vendored
7
public/vendor/flot/jquery.flot.js
vendored
@ -2962,8 +2962,11 @@ Licensed under the MIT license.
|
|||||||
}
|
}
|
||||||
|
|
||||||
function onClick(e) {
|
function onClick(e) {
|
||||||
triggerClickHoverEvent("plotclick", e,
|
if (plot.isSelecting) {
|
||||||
function (s) { return s["clickable"] != false; });
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
triggerClickHoverEvent("plotclick", e, function (s) { return s["clickable"] != false; });
|
||||||
}
|
}
|
||||||
|
|
||||||
// trigger click or hover event (they send the same parameters
|
// trigger click or hover event (they send the same parameters
|
||||||
|
5
public/vendor/flot/jquery.flot.selection.js
vendored
5
public/vendor/flot/jquery.flot.selection.js
vendored
@ -152,6 +152,10 @@ The plugin allso adds the following methods to the plot object:
|
|||||||
plot.getPlaceholder().trigger("plotselecting", [ null ]);
|
plot.getPlaceholder().trigger("plotselecting", [ null ]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setTimeout(function() {
|
||||||
|
plot.isSelecting = false;
|
||||||
|
}, 10);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -218,6 +222,7 @@ The plugin allso adds the following methods to the plot object:
|
|||||||
|
|
||||||
setSelectionPos(selection.second, pos);
|
setSelectionPos(selection.second, pos);
|
||||||
if (selectionIsSane()) {
|
if (selectionIsSane()) {
|
||||||
|
plot.isSelecting = true;
|
||||||
selection.show = true;
|
selection.show = true;
|
||||||
plot.triggerRedrawOverlay();
|
plot.triggerRedrawOverlay();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user