aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-06-11 11:35:21 +0200
committerMario Vavti <mario@mariovavti.com>2015-06-11 11:35:21 +0200
commitc8fe408a62b607e69df0a059769fcd200416bf9d (patch)
tree9a62eba8f5e13fecd1897a5d8873879cdccf2d59 /view
parent04551ac32b171ce49eac64cee0eca719d8e2f58a (diff)
downloadvolse-hubzilla-c8fe408a62b607e69df0a059769fcd200416bf9d.tar.gz
volse-hubzilla-c8fe408a62b607e69df0a059769fcd200416bf9d.tar.bz2
volse-hubzilla-c8fe408a62b607e69df0a059769fcd200416bf9d.zip
fix rendering of affinity slider
Diffstat (limited to 'view')
-rw-r--r--view/css/default.css3
-rwxr-xr-xview/tpl/main_slider.tpl3
2 files changed, 4 insertions, 2 deletions
diff --git a/view/css/default.css b/view/css/default.css
index 2675bc2d8..fb6705894 100644
--- a/view/css/default.css
+++ b/view/css/default.css
@@ -14,8 +14,7 @@ main {
height: 100%;
}
-aside#region_1,
-aside#region_3 {
+aside {
display: table-cell;
vertical-align: top;
padding: 65px 7px 0px 7px;
diff --git a/view/tpl/main_slider.tpl b/view/tpl/main_slider.tpl
index d88bc1370..a4e2e1925 100755
--- a/view/tpl/main_slider.tpl
+++ b/view/tpl/main_slider.tpl
@@ -1,7 +1,9 @@
<div id="main-slider" class="slider" ><input id="main-range" type="text" name="cminmax" value="{{$val}}" /></div>
<script>
+$(document).ready(function() {
var old_cmin = 0;
var old_cmax = 99;
+
$("#main-range").jRange({ isRange: true, from: 0, to: 99, step: 1, scale: [{{$labels}}], width:'100%', showLabels: false, onstatechange: function(v) {
var carr = v.split(",");
if(carr[0] != bParam_cmin) {
@@ -32,4 +34,5 @@
page_load = true;
liveUpdate();
}
+});
</script>