Implement History.js logic for "Cancel" action

This commit is contained in:
Loz Calver 2013-11-11 12:31:32 +00:00 committed by Ingo Schommer
parent 95d9257b1b
commit 8f720406b5
2 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ class CMSPageAddController extends CMSPageEditController {
->addExtraClass('ss-ui-action-constructive')->setAttribute('data-icon', 'accept')
->setUseButtonTag(true),
FormAction::create("doCancel", _t('CMSMain.Cancel',"Cancel"))
->addExtraClass('ss-ui-action-destructive')
->addExtraClass('ss-ui-action-destructive ss-ui-action-cancel')
->setUseButtonTag(true)
);

View File

@ -84,7 +84,7 @@
else $(this).find('input').removeAttr('disabled');
}
});
$(".cms-page-add-button").entwine({
onclick: function(e) {
var tree = $('.cms-tree'), list = $('.cms-list'), parentId = 0;