diff options
author | friendica <info@friendica.com> | 2015-02-03 18:10:55 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-02-03 18:10:55 -0800 |
commit | 17ffe122b309610208d769f0e2b41f53fcf9d254 (patch) | |
tree | b21e6080c586418a5327c5a50c9bf69538cf2c6c /view/js | |
parent | 5cb2f55dbbe715219dd18c60345e341ed478a753 (diff) | |
download | volse-hubzilla-17ffe122b309610208d769f0e2b41f53fcf9d254.tar.gz volse-hubzilla-17ffe122b309610208d769f0e2b41f53fcf9d254.tar.bz2 volse-hubzilla-17ffe122b309610208d769f0e2b41f53fcf9d254.zip |
ratings - mopping up, most everything but directory sync implemented
Diffstat (limited to 'view/js')
-rw-r--r-- | view/js/mod_directory.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/view/js/mod_directory.js b/view/js/mod_directory.js index 60bfe98ba..09b103352 100644 --- a/view/js/mod_directory.js +++ b/view/js/mod_directory.js @@ -8,9 +8,9 @@ function dirdetails(hash) { 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>'; + var html = '<form action="prate" method="post"><input type="hidden" name="target" value="'+hash+'" /><div class="rating-desc">'+aStr['rating_desc']+'</div><input id="dir-rating-range" class="directory-slider" type="text" value="0" name="rating" style="display: none;" /><div class="rating-text">'+aStr['rating_text']+'<input type="text" name="rating-text" class="directory-rating-text" /><br /><input name="submit" class="directory-rating-submit" type="submit" value="submit" ></form><div class="clear"></div><script>$("#dir-rating-range").jRange({ from: -10, to: 10, step: 1, 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 }); + $.colorbox({maxwidth: "50%", maxHeight: "50%", html: html, close: 'X' }); } |