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-icon', 'accept')
|
||||||
->setAttribute('data-url', $this->Link('update'))
|
->setAttribute('data-url', $this->Link('update'))
|
||||||
->setUseButtonTag(true)
|
->setUseButtonTag(true)
|
||||||
->setDisabled(true)
|
//->setDisabled(true)
|
||||||
);
|
);
|
||||||
/*
|
/*
|
||||||
if($crumbs && $crumbs->count()>=2)
|
if($crumbs && $crumbs->count()>=2)
|
||||||
@ -217,7 +217,7 @@ class GridFieldBulkImageUpload_Request extends RequestHandler {
|
|||||||
->setAttribute('data-icon', 'decline')
|
->setAttribute('data-icon', 'decline')
|
||||||
->setAttribute('data-url', $this->Link('cancel'))
|
->setAttribute('data-url', $this->Link('cancel'))
|
||||||
->setUseButtonTag(true)
|
->setUseButtonTag(true)
|
||||||
->setDisabled(true)
|
//->setDisabled(true)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
@ -40,6 +40,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
|
// end SS overhides
|
||||||
// start add-on behaviours
|
// start add-on behaviours
|
||||||
@ -66,7 +75,10 @@
|
|||||||
if ( !$(itemInfo).hasClass('dirty') ) $(itemInfo).addClass('dirty');
|
if ( !$(itemInfo).hasClass('dirty') ) $(itemInfo).addClass('dirty');
|
||||||
|
|
||||||
$('#bulkImageUploadUpdateFinishBtn').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');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -157,9 +169,10 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
$('.ss-uploadfield-item-editform').entwine({
|
$('.ss-uploadfield-item-editform').entwine({
|
||||||
onmatch: function(e){
|
onmatch: function(e){
|
||||||
console.log(this);
|
$('#bulkImageUploadUpdateCancelBtn').removeClass('ui-state-disabled ssui-button-disabled');
|
||||||
$('#bulkImageUploadUpdateCancelBtn').removeClass('ui-state-disabled');
|
$('#bulkImageUploadUpdateCancelBtn').attr('aria-disabled', 'false');
|
||||||
|
$('#bulkImageUploadUpdateCancelBtn').removeAttr('disabled');
|
||||||
},
|
},
|
||||||
onunmatch: function(){
|
onunmatch: function(){
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user