From 46d527ecf69772b89e369e61903a85c6792b9150 Mon Sep 17 00:00:00 2001 From: czaks Date: Tue, 21 Jan 2014 19:25:11 +0100 Subject: update jquery to 1.10.2; change "bind" to "on" everywhere; fixes vichan-devel#27 --- js/quick-reply.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'js/quick-reply.js') 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()); }); -- cgit v1.3