FIX disabled button not working in FF + IE

buttons are just visually disabled via JS for now
This commit is contained in:
colymba 2013-03-04 10:54:28 +02:00
parent 8a85918e33
commit 3d3e50e596
2 changed files with 19 additions and 6 deletions

View File

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

View File

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