aboutsummaryrefslogtreecommitdiffstats
path: root/js/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/main.js')
-rw-r--r--js/main.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/main.js b/js/main.js
index be6b5dbae..a156dbadd 100644
--- a/js/main.js
+++ b/js/main.js
@@ -423,7 +423,7 @@
if(data.preview) {
$("#comment-edit-preview-" + id).html(data.preview);
- $("#comment-edit-preview-" + id + " a").removeAttr('href');
+ $("#comment-edit-preview-" + id + " a").click(function() { return false; });
}
},
"json"
@@ -443,12 +443,12 @@
function(data) {
if(data.preview) {
$("#jot-preview-content").html(data.preview);
- $("#jot-preview-content" + " a").removeAttr('href');
+ $("#jot-preview-content" + " a").click(function() { return false; });
}
},
"json"
);
- $("#jot-preview").val("1");
+ $("#jot-preview").val("0");
return true;
}