summaryrefslogtreecommitdiff
path: root/js/selection.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/selection.js')
-rw-r--r--js/selection.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/selection.js b/js/selection.js
index fcb738b..6834aca 100644
--- a/js/selection.js
+++ b/js/selection.js
@@ -16,10 +16,10 @@ function getSelectionText(divID) {
return selectedText;
}
$(document).ready(function() {
- $("#fix-caption-code").mousedown(function() {
+ $(".fix-caption-code").mousedown(function() {
$("#edit-caption").val("");
});
- $("#fix-caption-code").mouseup(function() {
+ $(".fix-caption-code").mouseup(function() {
quotedText = getSelectionText("#fix-caption-code");
$("#edit-caption").val(quotedText);
});