sync non-text fields too

This commit is contained in:
Michael Foster 2013-09-15 07:35:21 +10:00
parent c8f2f00320
commit 7bd3a1a3bf

View File

@ -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());
});
};