aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-07-15 22:44:05 -0700
committerfriendica <info@friendica.com>2012-07-15 22:44:05 -0700
commit945ac38a7376926c54906a18382eaa1d4b983c03 (patch)
tree379e6a03ad7c5d6418b14936c9e1bd9d49784606 /view
parent92d4e6ebb393e964a4ac23aada09f04a965ce001 (diff)
downloadvolse-hubzilla-945ac38a7376926c54906a18382eaa1d4b983c03.tar.gz
volse-hubzilla-945ac38a7376926c54906a18382eaa1d4b983c03.tar.bz2
volse-hubzilla-945ac38a7376926c54906a18382eaa1d4b983c03.zip
contact edit slider
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>