The Gitlab instance will be restarted on Monday April 28th at 2AM. There will be a short interruption of service.

Skip to content
Snippets Groups Projects
Commit 5fb349ab authored by Chris Hallberg's avatar Chris Hallberg
Browse files

RTL sliders with library update.

parent 2a33a892
No related merge requests found
This diff is collapsed.
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
$max = intval($max); $max = intval($max);
$low = intval($low); $low = intval($low);
$high = intval($high); $high = intval($high);
$reversed = $this->layout()->rtl ? 'true' : 'false';
$init = !empty($current['values'][0]) ? 'fillTexts()' : ''; $init = !empty($current['values'][0]) ? 'fillTexts()' : '';
$script = <<<JS $script = <<<JS
$(document).ready(function() { $(document).ready(function() {
...@@ -44,7 +45,8 @@ $(document).ready(function() { ...@@ -44,7 +45,8 @@ $(document).ready(function() {
'max':{$max}, 'max':{$max},
'handle':"square", 'handle':"square",
'tooltip':"hide", 'tooltip':"hide",
'value':[{$low},{$high}] 'value':[{$low},{$high}],
'reversed': {$reversed}
}) })
.on('slide', fillTexts) .on('slide', fillTexts)
.data('slider'); .data('slider');
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment