mirror of
https://github.com/colymba/GridFieldBulkEditingTools.git
synced 2024-10-22 11:05:57 +02:00
Watch onChange on form
This commit is contained in:
parent
b16ee50233
commit
00b936baa6
@ -51,17 +51,12 @@
|
||||
$('.bulkEditingForm').entwine({
|
||||
onsubmit: function(){
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
$('.bulkEditingForm input.text, .bulkEditingForm select, .bulkEditingForm textarea, .bulkEditingForm input.checkbox').entwine({
|
||||
},
|
||||
onchange: function(){
|
||||
var $form = this.parents('form.bulkEditingForm');
|
||||
|
||||
$form.removeClass('updated');
|
||||
if ( !$form.hasClass('hasUpdate') )
|
||||
this.removeClass('updated');
|
||||
if ( !this.hasClass('hasUpdate') )
|
||||
{
|
||||
$form.addClass('hasUpdate');
|
||||
this.addClass('hasUpdate');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user