aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
Diffstat (limited to 'view')
-rw-r--r--view/contact_edit.tpl1
-rw-r--r--view/contact_slider.tpl4
-rw-r--r--view/main_slider.tpl2
3 files changed, 6 insertions, 1 deletions
diff --git a/view/contact_edit.tpl b/view/contact_edit.tpl
index c68ca7f1d..4f99b4aca 100644
--- a/view/contact_edit.tpl
+++ b/view/contact_edit.tpl
@@ -56,6 +56,7 @@
<form action="contacts/$contact_id" method="post" >
<input type="hidden" name="contact_id" value="$contact_id">
+<input id="contact-closeness-mirror" type="hidden" name="closeness" value="$close" />
{{ if $poll_enabled }}
<div id="contact-edit-poll-wrapper">
diff --git a/view/contact_slider.tpl b/view/contact_slider.tpl
new file mode 100644
index 000000000..9b8a52320
--- /dev/null
+++ b/view/contact_slider.tpl
@@ -0,0 +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>
+<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 7d03beeb1..a559eae22 100644
--- a/view/main_slider.tpl
+++ b/view/main_slider.tpl
@@ -1,4 +1,4 @@
-<div id="slider" style="height: 32px; position: relative; left: 5%; width: 90%;"><input id="main-range" type="slider" name="closeness" value="0;99" /></div>
+<div id="slider" style="height: 32px; position: relative; left: 5%; width: 90%;"><input id="main-range" type="text" name="cminmax" value="0;99" /></div>
<script>
$("#main-range").slider({ from: 0, to: 99, step: 1, scale: ['$me', '$intimate', '|', '$friends', '|', '$coworkers', '|', '$oldfriends', '|', '$acquaintances', '|', '$world' ] });
</script>