summaryrefslogtreecommitdiff
path: root/js/quick-reply.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/quick-reply.js')
-rw-r--r--js/quick-reply.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/quick-reply.js b/js/quick-reply.js
index b2a60099..65e8e0d8 100644
--- a/js/quick-reply.js
+++ b/js/quick-reply.js
@@ -293,10 +293,10 @@
$origPostForm = $('form[name="post"]:first');
// Synchronise body text with original post form
- $origPostForm.find('textarea[name="body"]').bind('change input propertychange', function() {
+ $origPostForm.find('textarea[name="body"]').on('change input propertychange', function() {
$postForm.find('textarea[name="body"]').val($(this).val());
});
- $postForm.find('textarea[name="body"]').bind('change input propertychange', function() {
+ $postForm.find('textarea[name="body"]').on('change input propertychange', function() {
$origPostForm.find('textarea[name="body"]').val($(this).val());
});
$postForm.find('textarea[name="body"]').focus(function() {
@@ -308,10 +308,10 @@
$(this).attr('id', 'body');
});
// Synchronise other inputs
- $origPostForm.find('input[type="text"],select').bind('change input propertychange', function() {
+ $origPostForm.find('input[type="text"],select').on('change input propertychange', function() {
$postForm.find('[name="' + $(this).attr('name') + '"]').val($(this).val());
});
- $postForm.find('input[type="text"],select').bind('change input propertychange', function() {
+ $postForm.find('input[type="text"],select').on('change input propertychange', function() {
$origPostForm.find('[name="' + $(this).attr('name') + '"]').val($(this).val());
});