mirror of
https://github.com/colymba/GridFieldBulkEditingTools.git
synced 2024-10-22 11:05:57 +02:00
FIX disabled button not working in FF + IE
buttons are just visually disabled via JS for now
This commit is contained in:
parent
8a85918e33
commit
3d3e50e596
@ -194,7 +194,7 @@ class GridFieldBulkImageUpload_Request extends RequestHandler {
|
||||
->setAttribute('data-icon', 'accept')
|
||||
->setAttribute('data-url', $this->Link('update'))
|
||||
->setUseButtonTag(true)
|
||||
->setDisabled(true)
|
||||
//->setDisabled(true)
|
||||
);
|
||||
/*
|
||||
if($crumbs && $crumbs->count()>=2)
|
||||
@ -217,7 +217,7 @@ class GridFieldBulkImageUpload_Request extends RequestHandler {
|
||||
->setAttribute('data-icon', 'decline')
|
||||
->setAttribute('data-url', $this->Link('cancel'))
|
||||
->setUseButtonTag(true)
|
||||
->setDisabled(true)
|
||||
//->setDisabled(true)
|
||||
);
|
||||
|
||||
|
||||
|
@ -41,6 +41,15 @@
|
||||
}
|
||||
});
|
||||
|
||||
$('#bulkImageUploadUpdateBtn,#bulkImageUploadUpdateCancelBtn').entwine({
|
||||
onmatch: function(){
|
||||
$(this).addClass('ui-state-disabled ssui-button-disabled');
|
||||
$(this).attr('aria-disabled', 'true');
|
||||
$(this).attr('disabled', 'true');
|
||||
},
|
||||
onunmatch: function(){}
|
||||
});
|
||||
|
||||
// end SS overhides
|
||||
// start add-on behaviours
|
||||
|
||||
@ -66,7 +75,10 @@
|
||||
if ( !$(itemInfo).hasClass('dirty') ) $(itemInfo).addClass('dirty');
|
||||
|
||||
$('#bulkImageUploadUpdateFinishBtn').addClass('dirty');
|
||||
$('#bulkImageUploadUpdateBtn').removeClass('ui-state-disabled');
|
||||
|
||||
$('#bulkImageUploadUpdateBtn').removeClass('ui-state-disabled ssui-button-disabled');
|
||||
$('#bulkImageUploadUpdateBtn').attr('aria-disabled', 'false');
|
||||
$('#bulkImageUploadUpdateBtn').removeAttr('disabled');
|
||||
}
|
||||
});
|
||||
|
||||
@ -158,8 +170,9 @@
|
||||
|
||||
$('.ss-uploadfield-item-editform').entwine({
|
||||
onmatch: function(e){
|
||||
console.log(this);
|
||||
$('#bulkImageUploadUpdateCancelBtn').removeClass('ui-state-disabled');
|
||||
$('#bulkImageUploadUpdateCancelBtn').removeClass('ui-state-disabled ssui-button-disabled');
|
||||
$('#bulkImageUploadUpdateCancelBtn').attr('aria-disabled', 'false');
|
||||
$('#bulkImageUploadUpdateCancelBtn').removeAttr('disabled');
|
||||
},
|
||||
onunmatch: function(){
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user