mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
Implement History.js logic for "Cancel" action
This commit is contained in:
parent
95d9257b1b
commit
8f720406b5
@ -113,7 +113,7 @@ class CMSPageAddController extends CMSPageEditController {
|
|||||||
->addExtraClass('ss-ui-action-constructive')->setAttribute('data-icon', 'accept')
|
->addExtraClass('ss-ui-action-constructive')->setAttribute('data-icon', 'accept')
|
||||||
->setUseButtonTag(true),
|
->setUseButtonTag(true),
|
||||||
FormAction::create("doCancel", _t('CMSMain.Cancel',"Cancel"))
|
FormAction::create("doCancel", _t('CMSMain.Cancel',"Cancel"))
|
||||||
->addExtraClass('ss-ui-action-destructive')
|
->addExtraClass('ss-ui-action-destructive ss-ui-action-cancel')
|
||||||
->setUseButtonTag(true)
|
->setUseButtonTag(true)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@
|
|||||||
else $(this).find('input').removeAttr('disabled');
|
else $(this).find('input').removeAttr('disabled');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$(".cms-page-add-button").entwine({
|
$(".cms-page-add-button").entwine({
|
||||||
onclick: function(e) {
|
onclick: function(e) {
|
||||||
var tree = $('.cms-tree'), list = $('.cms-list'), parentId = 0;
|
var tree = $('.cms-tree'), list = $('.cms-list'), parentId = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user