mirror of
https://github.com/colymba/GridFieldBulkEditingTools.git
synced 2024-10-22 11:05:57 +02:00
FIX #31 upload/edit forms false submit
prevent individual forms to be submitted and returning errors
This commit is contained in:
parent
8a8279895a
commit
d6ea450ffc
@ -41,6 +41,12 @@
|
||||
}
|
||||
});
|
||||
|
||||
$('div.ss-upload .ss-uploadfield-item-editform form').entwine({
|
||||
onsubmit: function(e) {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
$('#bulkImageUploadUpdateBtn,#bulkImageUploadUpdateCancelBtn').entwine({
|
||||
onmatch: function(){
|
||||
$(this).addClass('ui-state-disabled ssui-button-disabled');
|
||||
|
@ -23,7 +23,7 @@ jQuery(document).ready(function(){
|
||||
'</div>' +
|
||||
'{% if (!file.error) { %}' +
|
||||
'<div class="ss-uploadfield-item-editform">'+
|
||||
'<form action="update" method="post" class="bulkImageUploadUpdateForm" name="BIUUF_{%=file.record.ID%}">'+
|
||||
'<form action="" method="post" class="bulkImageUploadUpdateForm" name="BIUUF_{%=file.record.ID%}">'+
|
||||
'<input type="hidden" name="record_{%=file.record.ID%}_ID" value="{%=file.record.ID%}"/>'+
|
||||
'<img class="imgPreview" src="{%=file.preview_url%}" />'+
|
||||
|
||||
|
@ -140,6 +140,12 @@
|
||||
onunmatch: function(){
|
||||
}
|
||||
});
|
||||
|
||||
$('.bulkEditingForm').entwine({
|
||||
onsubmit: function(){
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
$('.bulkEditingForm input, .bulkEditingForm select, .bulkEditingForm textarea').entwine({
|
||||
onchange: function(){
|
||||
|
Loading…
Reference in New Issue
Block a user