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({
|
$('#bulkImageUploadUpdateBtn,#bulkImageUploadUpdateCancelBtn').entwine({
|
||||||
onmatch: function(){
|
onmatch: function(){
|
||||||
$(this).addClass('ui-state-disabled ssui-button-disabled');
|
$(this).addClass('ui-state-disabled ssui-button-disabled');
|
||||||
|
@ -23,7 +23,7 @@ jQuery(document).ready(function(){
|
|||||||
'</div>' +
|
'</div>' +
|
||||||
'{% if (!file.error) { %}' +
|
'{% if (!file.error) { %}' +
|
||||||
'<div class="ss-uploadfield-item-editform">'+
|
'<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%}"/>'+
|
'<input type="hidden" name="record_{%=file.record.ID%}_ID" value="{%=file.record.ID%}"/>'+
|
||||||
'<img class="imgPreview" src="{%=file.preview_url%}" />'+
|
'<img class="imgPreview" src="{%=file.preview_url%}" />'+
|
||||||
|
|
||||||
|
@ -141,6 +141,12 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('.bulkEditingForm').entwine({
|
||||||
|
onsubmit: function(){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
$('.bulkEditingForm input, .bulkEditingForm select, .bulkEditingForm textarea').entwine({
|
$('.bulkEditingForm input, .bulkEditingForm select, .bulkEditingForm textarea').entwine({
|
||||||
onchange: function(){
|
onchange: function(){
|
||||||
var form;
|
var form;
|
||||||
|
Loading…
Reference in New Issue
Block a user