summaryrefslogtreecommitdiff
path: root/js/quick-reply.js
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2014-01-21 19:25:11 +0100
committerczaks <marcin@6irc.net>2014-01-21 19:25:11 +0100
commit46d527ecf69772b89e369e61903a85c6792b9150 (patch)
treefad2485c50dbe7fc19fb1087b0ebf7cbb4b96fa4 /js/quick-reply.js
parent0620f13392348e812df0f7a44f9c96f51a28d718 (diff)
update jquery to 1.10.2; change "bind" to "on" everywhere; fixes vichan-devel#27
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());
});