aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/redbasic
diff options
context:
space:
mode:
authorjeroenpraat <jeroenpraat@xs4all.nl>2014-06-05 14:00:05 +0000
committerjeroenpraat <jeroenpraat@xs4all.nl>2014-06-05 14:00:05 +0000
commit6ccf6455c4691ca2e90403ff9fbaa21b86512190 (patch)
treed997ab65cffdf4136e6b56c3297dd028cfe9b2c1 /view/theme/redbasic
parentd9688e5ab3bb1c33e432a14ac3455ecb7ca3a6b2 (diff)
parent48f856e84cb117b6224ae7a1e0cac30070f1af24 (diff)
downloadvolse-hubzilla-6ccf6455c4691ca2e90403ff9fbaa21b86512190.tar.gz
volse-hubzilla-6ccf6455c4691ca2e90403ff9fbaa21b86512190.tar.bz2
volse-hubzilla-6ccf6455c4691ca2e90403ff9fbaa21b86512190.zip
Merge branch 'master' of https://github.com/friendica/red
Diffstat (limited to 'view/theme/redbasic')
-rw-r--r--view/theme/redbasic/js/redbasic.js20
1 files changed, 16 insertions, 4 deletions
diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js
index 58acc1b95..5a9d2f390 100644
--- a/view/theme/redbasic/js/redbasic.js
+++ b/view/theme/redbasic/js/redbasic.js
@@ -1,21 +1,33 @@
function commentOpenRedbasic(obj,id) {
- $(document).click(function() {
+
+ $(document).unbind( "click.commentOpen", handler );
+
+ var handler = function() {
if(obj.value == aStr['comment']) {
obj.value = '';
$("#comment-edit-text-" + id).addClass("comment-edit-text-full").removeClass("comment-edit-text-empty");
$("#comment-tools-" + id).show();
}
- });
+ };
+
+ $(document).bind( "click.commentOpen", handler );
+
}
function commentCloseRedbasic(obj,id) {
- $(document).click(function() {
+
+ $(document).unbind( "click.commentClose", handler );
+
+ var handler = function() {
if(obj.value == '') {
obj.value = aStr['comment'];
$("#comment-edit-text-" + id).removeClass("comment-edit-text-full").addClass("comment-edit-text-empty");
$("#comment-tools-" + id).hide();
}
- });
+ };
+
+ $(document).bind( "click.commentClose", handler );
+
}
$(document).ready(function() {