diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-09-15 07:35:21 +1000 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-09-15 07:35:21 +1000 |
| commit | 7bd3a1a3bff80086e9f16b2ade8ea94ea99a8c6f (patch) | |
| tree | 7c0cc76b60ed264e88ac268c29475ba2c2004069 /js | |
| parent | c8f2f00320dd90ff51dec4de0286a9415aba4b0b (diff) | |
sync non-text fields too
Diffstat (limited to 'js')
| -rw-r--r-- | js/quick-reply.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/quick-reply.js b/js/quick-reply.js index 6f5c79d8..808abf0f 100644 --- a/js/quick-reply.js +++ b/js/quick-reply.js @@ -142,10 +142,10 @@ var show_quick_reply = function(){ $('#body').val($(this).val()); }); // Synchronise other inputs - $('form[name="post"] input[type="text"]').bind('change input propertychange', function() { + $('form[name="post"] input:not([type="submit"]):not([type="password"]):not([type="file"])').bind('change input propertychange', function() { $postForm.find('input[name="' + $(this).attr('name') + '"]').val($(this).val()); }); - $postForm.find('input[type="text"]').bind('change input propertychange', function() { + $postForm.find('input:not([type="submit"]):not([type="password"]):not([type="file"])').bind('change input propertychange', function() { $('form[name="post"] input[name="' + $(this).attr('name') + '"]').val($(this).val()); }); }; |
