aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/mod_directory.js
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-02-03 16:52:09 -0800
committerfriendica <info@friendica.com>2015-02-03 16:52:09 -0800
commit5cb2f55dbbe715219dd18c60345e341ed478a753 (patch)
tree615ec85b00bd3c417eff2c9b772d2b21c0051a8f /view/js/mod_directory.js
parentde79bb89fc0f6d0a55b1734e4deeb0dd5eed2fb9 (diff)
downloadvolse-hubzilla-5cb2f55dbbe715219dd18c60345e341ed478a753.tar.gz
volse-hubzilla-5cb2f55dbbe715219dd18c60345e341ed478a753.tar.bz2
volse-hubzilla-5cb2f55dbbe715219dd18c60345e341ed478a753.zip
rating form work
Diffstat (limited to 'view/js/mod_directory.js')
-rw-r--r--view/js/mod_directory.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/view/js/mod_directory.js b/view/js/mod_directory.js
index 74c8b414d..60bfe98ba 100644
--- a/view/js/mod_directory.js
+++ b/view/js/mod_directory.js
@@ -3,9 +3,18 @@ function dirdetails(hash) {
$.get('dirprofile' + '?f=&hash=' + hash, function( data ) {
$.colorbox({ maxWidth: "50%", maxHeight: "75%", html: data });
});
+}
+
+
+function doRatings(hash) {
+
+ var html = '<form action="prate" method="post"><input type="hidden" name="target" value="'+hash+'" /><input id="dir-rating-range" class="directory-slider" type="text" value="0" name="rating" style="display: none;" /><input type="text" name="rating-text" class="directory-rating-text" /><input name="submit" type="submit" value="submit" ></form><div class="clear"></div><script>$("#dir-rating-range").jRange({ from: -10, to: 10, step: 1, width:"100%", showLabels: false, showScale: true, scale : [ "-10","-5","0","5","10" ], onstatechange: function(v) { $("#dir-rating-range").val(v); } });</script>';
+
+ $.colorbox({maxwidth: "50%", maxHeight: "50%", html: html });
}
+
$(document).ready(function() {
collapseHeight();
}); \ No newline at end of file