diff options
Diffstat (limited to 'view')
-rw-r--r-- | view/contact_slider.tpl | 2 | ||||
-rw-r--r-- | view/main_slider.tpl | 10 | ||||
-rw-r--r-- | view/theme/duepuntozero/style.css | 9 |
3 files changed, 17 insertions, 4 deletions
diff --git a/view/contact_slider.tpl b/view/contact_slider.tpl index 9b8a52320..1334f58b1 100644 --- a/view/contact_slider.tpl +++ b/view/contact_slider.tpl @@ -1,4 +1,4 @@ -<div id="slider" style="height: 32px; position: relative; left: 5%; width: 90%;"><input id="contact-range" type="text" name="fake-closeness" value="$val" /></div> +<div id="contact-slider" class="slider" style="height: 32px; position: relative; left: 5%; width: 90%;"><input id="contact-range" type="text" name="fake-closeness" value="$val" /></div> <script> $("#contact-range").slider({ from: 0, to: 99, step: 1, scale: ['$me', '$intimate', '|', '$friends', '|', '$coworkers', '|', '$oldfriends', '|', '$acquaintances', '|', '$world' ], onstatechange: function(v) { $("#contact-closeness-mirror").val(v); } }); </script> diff --git a/view/main_slider.tpl b/view/main_slider.tpl index 8792fe1dc..bc9a60ed1 100644 --- a/view/main_slider.tpl +++ b/view/main_slider.tpl @@ -1,10 +1,14 @@ -<div id="slider" style="height: 32px; position: relative; left: 5%; width: 90%;"><input id="main-range" type="text" name="cminmax" value="0;99" /></div> +<div id="main-slider" class="slider" style="height: 32px; position: relative; left: 5%; width: 80%;"><input id="main-range" type="text" name="cminmax" value="$val" /></div> +<input id="slider-refresh" type="submit" name="submit" value="$refresh" onclick="networkRefresh();" /><div class="clear"></div> <script> $("#main-range").slider({ from: 0, to: 99, step: 1, scale: ['$me', '$intimate', '|', '$friends', '|', '$coworkers', '|', '$oldfriends', '|', '$acquaintances', '|', '$world' ], onstatechange: function(v) { var carr = v.split(";"); network_cmin = carr[0]; network_cmax = carr[1]; - var newcmd = buildCmd(); - var f; } }); + + function networkRefresh() { + window.location.href = buildCmd(); + } + </script> diff --git a/view/theme/duepuntozero/style.css b/view/theme/duepuntozero/style.css index 1be81d738..30f92dd85 100644 --- a/view/theme/duepuntozero/style.css +++ b/view/theme/duepuntozero/style.css @@ -3273,3 +3273,12 @@ ul.menu-popup { #datebrowse-sidebar select { margin-left: 25px; } + +#main-slider { + float: left; +} +#slider-refresh { + float: right; + margin-right: 25px; + margin-top: 7px; +} |