Permalink
Browse files

API CHANGE Removed CMSBatchAction->getDoingText(), the same informati…

…on can be visualized via a spinner button without this overhead
  • Loading branch information...
1 parent 495e15b commit a99d7b0b1dd2885e5072e76ef6f99f2f73603634 @chillu chillu committed Mar 15, 2011
Showing with 0 additions and 17 deletions.
  1. +0 −3 code/AssetAdmin.php
  2. +0 −12 code/CMSBatchAction.php
  3. +0 −2 code/CMSBatchActionHandler.php
View
3 code/AssetAdmin.php
@@ -510,9 +510,6 @@ function getActionTitle() {
// _t('AssetAdmin_left.ss.SELECTTODEL','Select the folders that you want to delete and then click the button below')
return _t('AssetAdmin_DeleteBatchAction.TITLE', 'Delete folders');
}
- function getDoingText() {
- return _t('AssetAdmin_DeletingBatchAction.TITLE', 'Deleting folders');
- }
function run(DataObjectSet $records) {
$status = array(
View
12 code/CMSBatchAction.php
@@ -139,9 +139,6 @@ class CMSBatchAction_Publish extends CMSBatchAction {
function getActionTitle() {
return _t('CMSBatchActions.PUBLISH_PAGES', 'Publish');
}
- function getDoingText() {
- return _t('CMSBatchActions.PUBLISHING_PAGES', 'Publishing selected pages');
- }
function run(DataObjectSet $pages) {
return $this->batchaction($pages, 'doPublish',
@@ -164,9 +161,6 @@ class CMSBatchAction_Unpublish extends CMSBatchAction {
function getActionTitle() {
return _t('CMSBatchActions.UNPUBLISH_PAGES', 'Un-publish');
}
- function getDoingText() {
- return _t('CMSBatchActions.UNPUBLISHING_PAGES', 'Un-publishing selected pages');
- }
function run(DataObjectSet $pages) {
return $this->batchaction($pages, 'doUnpublish',
@@ -185,9 +179,6 @@ class CMSBatchAction_Delete extends CMSBatchAction {
function getActionTitle() {
return _t('CMSBatchActions.DELETE_DRAFT_PAGES', 'Delete from draft site');
}
- function getDoingText() {
- return _t('CMSBatchActions.DELETING_DRAFT_PAGES', 'Deleting selected pages from the draft site');
- }
function run(DataObjectSet $pages) {
$status = array(
@@ -235,9 +226,6 @@ class CMSBatchAction_DeleteFromLive extends CMSBatchAction {
function getActionTitle() {
return _t('CMSBatchActions.DELETE_PAGES', 'Delete from published site');
}
- function getDoingText() {
- return _t('CMSBatchActions.DELETING_PAGES', 'Deleting selected pages from the published site');
- }
function run(DataObjectSet $pages) {
$status = array(
View
2 code/CMSBatchActionHandler.php
@@ -170,7 +170,6 @@ function handleConfirmation($request) {
* about each batch action:
* - Link
* - Title
- * - DoingText
*/
function batchActionList() {
$actions = $this->batchActions();
@@ -183,7 +182,6 @@ function batchActionList() {
$actionDef = new ArrayData(array(
"Link" => Controller::join_links($this->Link(), $urlSegment),
"Title" => $actionObj->getActionTitle(),
- "DoingText" => $actionObj->getDoingText(),
));
$actionList->push($actionDef);
}

0 comments on commit a99d7b0

Please sign in to comment.