From 8ed5af670439b3ba34047e3eb582f2f52a7ad9be Mon Sep 17 00:00:00 2001 From: Blesilda Ramirez Date: Mon, 21 Oct 2024 18:54:03 +0800 Subject: [PATCH] pkp/pkp-lib#10444 Remove modalStyle param value when using AjaxModal --- .../grid/catalogEntry/IdentificationCodeGridHandler.php | 1 - controllers/grid/catalogEntry/IdentificationCodeGridRow.php | 1 - controllers/grid/catalogEntry/MarketsGridHandler.php | 1 - controllers/grid/catalogEntry/MarketsGridRow.php | 1 - controllers/grid/catalogEntry/PublicationDateGridHandler.php | 1 - controllers/grid/catalogEntry/PublicationDateGridRow.php | 1 - .../grid/catalogEntry/PublicationFormatGridCategoryRow.php | 1 - .../grid/catalogEntry/PublicationFormatGridCellProvider.php | 3 --- controllers/grid/catalogEntry/PublicationFormatGridHandler.php | 1 - controllers/grid/catalogEntry/PublicationFormatGridRow.php | 1 - controllers/grid/catalogEntry/RepresentativesGridHandler.php | 1 - controllers/grid/catalogEntry/RepresentativesGridRow.php | 1 - controllers/grid/catalogEntry/SalesRightsGridHandler.php | 1 - controllers/grid/catalogEntry/SalesRightsGridRow.php | 1 - controllers/grid/settings/series/SeriesGridHandler.php | 1 - controllers/grid/settings/series/SeriesGridRow.php | 1 - .../grid/users/chapter/ChapterGridCategoryRowCellProvider.php | 1 - controllers/grid/users/chapter/ChapterGridHandler.php | 1 - plugins/blocks/browse/BrowseBlockPlugin.php | 1 - 19 files changed, 21 deletions(-) diff --git a/controllers/grid/catalogEntry/IdentificationCodeGridHandler.php b/controllers/grid/catalogEntry/IdentificationCodeGridHandler.php index 92321bcb6c7..20edda1abf1 100644 --- a/controllers/grid/catalogEntry/IdentificationCodeGridHandler.php +++ b/controllers/grid/catalogEntry/IdentificationCodeGridHandler.php @@ -190,7 +190,6 @@ public function initialize($request, $args = null) new AjaxModal( $router->url($request, null, null, 'addCode', null, $actionArgs), __('grid.action.addCode'), - 'side-modal' ), __('grid.action.addCode'), 'add_item' diff --git a/controllers/grid/catalogEntry/IdentificationCodeGridRow.php b/controllers/grid/catalogEntry/IdentificationCodeGridRow.php index 955d909d8f2..a0b8193cb33 100644 --- a/controllers/grid/catalogEntry/IdentificationCodeGridRow.php +++ b/controllers/grid/catalogEntry/IdentificationCodeGridRow.php @@ -73,7 +73,6 @@ public function initialize($request, $template = null) new AjaxModal( $router->url($request, null, null, 'editCode', null, $actionArgs), __('grid.action.edit'), - 'side-modal' ), __('grid.action.edit'), 'edit' diff --git a/controllers/grid/catalogEntry/MarketsGridHandler.php b/controllers/grid/catalogEntry/MarketsGridHandler.php index ccbb8c72779..9e96ee142b7 100644 --- a/controllers/grid/catalogEntry/MarketsGridHandler.php +++ b/controllers/grid/catalogEntry/MarketsGridHandler.php @@ -192,7 +192,6 @@ public function initialize($request, $args = null) new AjaxModal( $router->url($request, null, null, 'addMarket', null, $actionArgs), __('grid.action.addMarket'), - 'side-modal' ), __('grid.action.addMarket'), 'add_item' diff --git a/controllers/grid/catalogEntry/MarketsGridRow.php b/controllers/grid/catalogEntry/MarketsGridRow.php index 2a8f102f991..65ab0407227 100644 --- a/controllers/grid/catalogEntry/MarketsGridRow.php +++ b/controllers/grid/catalogEntry/MarketsGridRow.php @@ -74,7 +74,6 @@ public function initialize($request, $template = null) new AjaxModal( $router->url($request, null, null, 'editMarket', null, $actionArgs), __('grid.action.edit'), - 'side-modal' ), __('grid.action.edit'), 'edit' diff --git a/controllers/grid/catalogEntry/PublicationDateGridHandler.php b/controllers/grid/catalogEntry/PublicationDateGridHandler.php index d3f5dfd55db..9c6ea58deda 100644 --- a/controllers/grid/catalogEntry/PublicationDateGridHandler.php +++ b/controllers/grid/catalogEntry/PublicationDateGridHandler.php @@ -190,7 +190,6 @@ public function initialize($request, $args = null) new AjaxModal( $router->url($request, null, null, 'addDate', null, $actionArgs), __('grid.action.addDate'), - 'side-modal' ), __('grid.action.addDate'), 'add_item' diff --git a/controllers/grid/catalogEntry/PublicationDateGridRow.php b/controllers/grid/catalogEntry/PublicationDateGridRow.php index 09e1e4d145e..3269bab950a 100644 --- a/controllers/grid/catalogEntry/PublicationDateGridRow.php +++ b/controllers/grid/catalogEntry/PublicationDateGridRow.php @@ -76,7 +76,6 @@ public function initialize($request, $template = null) new AjaxModal( $router->url($request, null, null, 'editDate', null, $actionArgs), __('grid.action.edit'), - 'side-modal' ), __('grid.action.edit'), 'edit' diff --git a/controllers/grid/catalogEntry/PublicationFormatGridCategoryRow.php b/controllers/grid/catalogEntry/PublicationFormatGridCategoryRow.php index 0c6fd0b2064..6c79eae220f 100644 --- a/controllers/grid/catalogEntry/PublicationFormatGridCategoryRow.php +++ b/controllers/grid/catalogEntry/PublicationFormatGridCategoryRow.php @@ -97,7 +97,6 @@ public function initialize($request, $template = null) new AjaxModal( $router->url($request, null, null, 'editFormat', null, $actionArgs), __('grid.action.edit'), - 'side-modal' ), __('grid.action.edit'), 'edit' diff --git a/controllers/grid/catalogEntry/PublicationFormatGridCellProvider.php b/controllers/grid/catalogEntry/PublicationFormatGridCellProvider.php index 3110b024b1f..7869b842196 100644 --- a/controllers/grid/catalogEntry/PublicationFormatGridCellProvider.php +++ b/controllers/grid/catalogEntry/PublicationFormatGridCellProvider.php @@ -230,7 +230,6 @@ public function getCellActions($request, $row, $column, $position = GridHandler: ] ), __('grid.catalogEntry.approvedRepresentation.title'), - 'side-modal' ), $data->getIsApproved() ? __('submission.complete') : __('submission.incomplete'), $data->getIsApproved() ? 'complete' : 'incomplete', @@ -261,7 +260,6 @@ public function getCellActions($request, $row, $column, $position = GridHandler: 'representationId' => $submissionFile->getData('assocId'), ]), __('editor.monograph.approvedProofs.edit'), - 'side-modal' ), __($salesTypeString), $salesType @@ -288,7 +286,6 @@ public function getCellActions($request, $row, $column, $position = GridHandler: ] ), $title, - 'side-modal' ), $submissionFile->getViewable() ? __('grid.catalogEntry.availableRepresentation.approved') : __('grid.catalogEntry.availableRepresentation.notApproved'), $submissionFile->getViewable() ? 'complete' : 'incomplete', diff --git a/controllers/grid/catalogEntry/PublicationFormatGridHandler.php b/controllers/grid/catalogEntry/PublicationFormatGridHandler.php index 8371e3371ea..2c5d6d33052 100644 --- a/controllers/grid/catalogEntry/PublicationFormatGridHandler.php +++ b/controllers/grid/catalogEntry/PublicationFormatGridHandler.php @@ -170,7 +170,6 @@ public function initialize($request, $args = null) new AjaxModal( $router->url($request, null, null, 'addFormat', null, $actionArgs), __('grid.action.addFormat'), - 'side-modal' ), __('grid.action.addFormat'), 'add_item' diff --git a/controllers/grid/catalogEntry/PublicationFormatGridRow.php b/controllers/grid/catalogEntry/PublicationFormatGridRow.php index 17fc09c2ff0..779e804beb6 100644 --- a/controllers/grid/catalogEntry/PublicationFormatGridRow.php +++ b/controllers/grid/catalogEntry/PublicationFormatGridRow.php @@ -69,7 +69,6 @@ public function initialize($request, $template = 'controllers/grid/gridRow.tpl') ] )), __('submission.dependentFiles'), - 'side-modal' ), __('submission.dependentFiles'), 'edit' diff --git a/controllers/grid/catalogEntry/RepresentativesGridHandler.php b/controllers/grid/catalogEntry/RepresentativesGridHandler.php index 73f9e2861c7..fd7b56745a3 100644 --- a/controllers/grid/catalogEntry/RepresentativesGridHandler.php +++ b/controllers/grid/catalogEntry/RepresentativesGridHandler.php @@ -127,7 +127,6 @@ public function initialize($request, $args = null) new AjaxModal( $router->url($request, null, null, 'addRepresentative', null, $actionArgs), __('grid.action.addRepresentative'), - 'side-modal' ), __('grid.action.addRepresentative'), 'add_item' diff --git a/controllers/grid/catalogEntry/RepresentativesGridRow.php b/controllers/grid/catalogEntry/RepresentativesGridRow.php index 85617e9cbee..ba1932cc100 100644 --- a/controllers/grid/catalogEntry/RepresentativesGridRow.php +++ b/controllers/grid/catalogEntry/RepresentativesGridRow.php @@ -68,7 +68,6 @@ public function initialize($request, $template = null) new AjaxModal( $router->url($request, null, null, 'editRepresentative', null, $actionArgs), __('grid.action.edit'), - 'side-modal' ), __('grid.action.edit'), 'edit' diff --git a/controllers/grid/catalogEntry/SalesRightsGridHandler.php b/controllers/grid/catalogEntry/SalesRightsGridHandler.php index 0a142c8944d..f8dea723881 100644 --- a/controllers/grid/catalogEntry/SalesRightsGridHandler.php +++ b/controllers/grid/catalogEntry/SalesRightsGridHandler.php @@ -190,7 +190,6 @@ public function initialize($request, $args = null) new AjaxModal( $router->url($request, null, null, 'addRights', null, $actionArgs), __('grid.action.addRights'), - 'side-modal' ), __('grid.action.addRights'), 'add_item' diff --git a/controllers/grid/catalogEntry/SalesRightsGridRow.php b/controllers/grid/catalogEntry/SalesRightsGridRow.php index 024aa03f669..029dd7db757 100644 --- a/controllers/grid/catalogEntry/SalesRightsGridRow.php +++ b/controllers/grid/catalogEntry/SalesRightsGridRow.php @@ -68,7 +68,6 @@ public function initialize($request, $template = null) new AjaxModal( $router->url($request, null, null, 'editRights', null, $actionArgs), __('grid.action.edit'), - 'side-modal' ), __('grid.action.edit'), 'edit' diff --git a/controllers/grid/settings/series/SeriesGridHandler.php b/controllers/grid/settings/series/SeriesGridHandler.php index 46fcf4c7efe..0164a3bc474 100644 --- a/controllers/grid/settings/series/SeriesGridHandler.php +++ b/controllers/grid/settings/series/SeriesGridHandler.php @@ -128,7 +128,6 @@ public function initialize($request, $args = null) new AjaxModal( $router->url($request, null, null, 'addSeries', null, ['gridId' => $this->getId()]), __('grid.action.addSeries'), - 'side-modal' ), __('grid.action.addSeries'), 'add_category' diff --git a/controllers/grid/settings/series/SeriesGridRow.php b/controllers/grid/settings/series/SeriesGridRow.php index d228b7ae83b..5017b4804a0 100644 --- a/controllers/grid/settings/series/SeriesGridRow.php +++ b/controllers/grid/settings/series/SeriesGridRow.php @@ -46,7 +46,6 @@ public function initialize($request, $template = null) new AjaxModal( $router->url($request, null, null, 'editSeries', null, ['seriesId' => $seriesId]), __('grid.action.edit'), - 'side-modal', true ), __('grid.action.edit'), diff --git a/controllers/grid/users/chapter/ChapterGridCategoryRowCellProvider.php b/controllers/grid/users/chapter/ChapterGridCategoryRowCellProvider.php index 9db9acd4e16..a1f72d4a28e 100644 --- a/controllers/grid/users/chapter/ChapterGridCategoryRowCellProvider.php +++ b/controllers/grid/users/chapter/ChapterGridCategoryRowCellProvider.php @@ -49,7 +49,6 @@ public function getCellActions($request, $row, $column, $position = GridHandler: new AjaxModal( $router->url($request, null, null, 'editChapter', null, $actionArgs), __('submission.chapter.editChapter'), - 'side-modal' ), htmlspecialchars($chapter->getLocalizedTitle()) ) diff --git a/controllers/grid/users/chapter/ChapterGridHandler.php b/controllers/grid/users/chapter/ChapterGridHandler.php index 95d13124376..fd485e5a473 100644 --- a/controllers/grid/users/chapter/ChapterGridHandler.php +++ b/controllers/grid/users/chapter/ChapterGridHandler.php @@ -151,7 +151,6 @@ public function initialize($request, $args = null) new AjaxModal( $router->url($request, null, null, 'addChapter', null, $actionArgs), __('submission.chapter.addChapter'), - 'side-modal' ), __('submission.chapter.addChapter'), 'add_item' diff --git a/plugins/blocks/browse/BrowseBlockPlugin.php b/plugins/blocks/browse/BrowseBlockPlugin.php index 45a49d72fdb..1ca7a16dc77 100644 --- a/plugins/blocks/browse/BrowseBlockPlugin.php +++ b/plugins/blocks/browse/BrowseBlockPlugin.php @@ -66,7 +66,6 @@ public function getActions($request, $actionArgs) new AjaxModal( $router->url($request, null, null, 'manage', null, array_merge($actionArgs, ['verb' => 'settings'])), $this->getDisplayName(), - 'side-modal' ), __('manager.plugins.settings'), null