summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-05-17 14:20:40 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-06-17 13:21:28 +0200
commit0e0aeb72071f7a07bc8d913b3d9e9ffa72ed6ab7 (patch)
treeac2a65dfd32b53a7d0b5119ef85e73632f767aa7
parent592ae4b1cefd38257b643f124847cf0ec6c27c3f (diff)
downloadIshtar-0e0aeb72071f7a07bc8d913b3d9e9ffa72ed6ab7.tar.bz2
Ishtar-0e0aeb72071f7a07bc8d913b3d9e9ffa72ed6ab7.zip
Statistics: redraw on drag end only
-rw-r--r--ishtar_common/templates/blocks/DataTables-stats.html8
-rw-r--r--scss/custom.scss4
2 files changed, 11 insertions, 1 deletions
diff --git a/ishtar_common/templates/blocks/DataTables-stats.html b/ishtar_common/templates/blocks/DataTables-stats.html
index 85374c5b9..091f472b9 100644
--- a/ishtar_common/templates/blocks/DataTables-stats.html
+++ b/ishtar_common/templates/blocks/DataTables-stats.html
@@ -79,7 +79,13 @@
jQuery(document).ready(function(){
$("#chart-{{name}}-wrapper").resizable({
handleSelector: ".resize-handler",
- onDrag: function (e, $el, opt) {
+ onDragStart: function (e, $el, opt) {
+ $("#chart-{{name}}-wrapper").addClass('chart-resize');
+ $("#chart-{{name}}").hide();
+ },
+ onDragEnd: function (e, $el, opt) {
+ $("#chart-{{name}}-wrapper").removeClass('chart-resize');
+ $("#chart-{{name}}").show();
stats_current_graph.replot( { resetAxes: true } );
}
});
diff --git a/scss/custom.scss b/scss/custom.scss
index 769ed62ec..6417e1e96 100644
--- a/scss/custom.scss
+++ b/scss/custom.scss
@@ -902,6 +902,10 @@ ul.compact{
height: 96%;
}
+.chart-resize{
+ border: 1px #999 dashed;
+}
+
/*
// required
@import "bootstrap-src/scss/functions";