diff options
author | Simon Rettberg | 2016-09-07 12:33:18 +0200 |
---|---|---|
committer | Simon Rettberg | 2016-09-07 12:33:18 +0200 |
commit | 6668e880eb36f89c6f92cbcd4c13aa4c63905d0a (patch) | |
tree | 15bba97b6be165352cfb709db36af044be530a0b /modules-available/roomplanner/js/grid.js | |
parent | Use gzip output handler for AJAX too (diff) | |
download | slx-admin-6668e880eb36f89c6f92cbcd4c13aa4c63905d0a.tar.gz slx-admin-6668e880eb36f89c6f92cbcd4c13aa4c63905d0a.tar.xz slx-admin-6668e880eb36f89c6f92cbcd4c13aa4c63905d0a.zip |
[roomplanner] Make grid area higher, update slider when clicking (+) and (-)
Diffstat (limited to 'modules-available/roomplanner/js/grid.js')
-rw-r--r-- | modules-available/roomplanner/js/grid.js | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/modules-available/roomplanner/js/grid.js b/modules-available/roomplanner/js/grid.js index 80273441..2ba1c7a1 100644 --- a/modules-available/roomplanner/js/grid.js +++ b/modules-available/roomplanner/js/grid.js @@ -404,16 +404,19 @@ roomplanner.grid = (function() { $(document).ready(function(){ roomplanner.grid.init(); + + var update = function(event,ui) { + roomplanner.grid.scale(ui.value); + }; - $('#scaleslider').slider({ + roomplanner.slider = $('#scaleslider').slider({ orientation: "horizontal", range: "min", - min: 20, - max: 200, + min: 50, + max: 150, value: 100, - slide: function(event,ui) { - roomplanner.grid.scale(ui.value); - }, + change: update, + slide: update, stop: function(e, ui) { $('#drawarea').trigger('checkposition'); } |