Skip to content

Commit

Permalink
pkp#10444 Remove modalStyle param when using AjaxModal class
Browse files Browse the repository at this point in the history
  • Loading branch information
blesildaramirez committed Nov 14, 2024
1 parent 3f65008 commit 2ea528d
Show file tree
Hide file tree
Showing 52 changed files with 29 additions and 69 deletions.
1 change: 0 additions & 1 deletion classes/controllers/grid/plugins/PluginGridHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ public function initialize($request, $args = null)
new AjaxModal(
$router->url($request, null, null, 'uploadPlugin'),
__('manager.plugins.upload'),
'side-modal'
),
__('manager.plugins.upload'),
'add'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ public function initialize($request, $args = null)
new AjaxModal(
$router->url($request, null, null, 'showReviewerForm', null, $actionArgs),
__('editor.submission.addReviewer'),
'side-modal'
),
__('editor.submission.addReviewer'),
'add_user'
Expand Down
1 change: 0 additions & 1 deletion classes/plugins/PKPPubIdPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ public function getActions($request, $actionArgs)
new AjaxModal(
$router->url($request, null, null, 'manage', null, $actionArgs),
$this->getDisplayName(),
'side-modal'
),
__('manager.plugins.settings'),
null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ public function fetch($request, $template = null, $display = false)
new AjaxModal(
$request->url(null, null, 'showDeclineReview', [$reviewAssignment->getSubmissionId()]),
__('reviewer.submission.declineReview'),
'side-modal'
)
);
$templateMgr->assign('declineReviewAction', $declineReviewLinkAction);
Expand Down
1 change: 0 additions & 1 deletion controllers/api/file/linkAction/BaseAddFileLinkAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ public function __construct(
$actionArgs
),
$wizardTitle,
'side-modal'
);

// Configure the link action.
Expand Down
1 change: 0 additions & 1 deletion controllers/api/file/linkAction/EditFileLinkAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ public function __construct($request, $submissionFile, $stageId)
$this->getActionArgs($submissionFile, $stageId)
),
__('grid.action.editFile'),
'side-modal'
);

// Configure the file link action.
Expand Down
1 change: 0 additions & 1 deletion controllers/api/task/SendReminderLinkAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ public function __construct($request, $modalTitle, $actionArgs)
$ajaxModal = new AjaxModal(
$router->url($request, null, null, 'editReminder', null, $actionArgs),
__($modalTitle),
'side-modal'
);

// Configure the link action.
Expand Down
1 change: 0 additions & 1 deletion controllers/api/task/SendThankYouLinkAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ public function __construct($request, $modalTitle, $actionArgs)
$ajaxModal = new AjaxModal(
$router->url($request, null, null, 'editThankReviewer', null, $actionArgs),
__($modalTitle),
'side-modal'
);

// Configure the link action.
Expand Down
2 changes: 1 addition & 1 deletion controllers/grid/admin/context/ContextGridHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function initialize($request, $args = null)
new AjaxModal(
$router->url($request, null, null, 'createContext', null, null),
__('admin.contexts.create'),
'side-modal',
null,
true,
'context',
['editContext']
Expand Down
4 changes: 2 additions & 2 deletions controllers/grid/admin/context/ContextGridRow.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function initialize($request, $template = null)
new AjaxModal(
$router->url($request, null, null, 'editContext', null, ['rowId' => $rowId]),
__('grid.action.edit'),
'side-modal',
null,
true,
'context',
['editContext']
Expand Down Expand Up @@ -89,7 +89,7 @@ public function initialize($request, $template = null)
new AjaxModal(
$router->url($request, $element->getPath(), null, 'users', null),
__('manager.users'),
'side-modal',
null,
true
),
__('manager.users'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function initialize($request, $args = null)
new AjaxModal(
$router->url($request, null, null, 'installLocale', null, null),
__('admin.languages.installLocale'),
'side-modal',
null,
true
),
__('admin.languages.installLocale'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function getCellActions($request, $row, $column, $position = GridHandler:
new AjaxModal(
$router->url($request, null, null, 'editAnnouncementType', null, $actionArgs),
__('grid.action.edit'),
'side-modal',
null,
true
),
htmlspecialchars($announcementType->getLocalizedTypeName())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function initialize($request, $args = null)
new AjaxModal(
$router->url($request, null, null, 'addAnnouncementType', null, null),
__('grid.action.addAnnouncementType'),
'side-modal',
null,
true
),
__('grid.action.addAnnouncementType'),
Expand Down
2 changes: 1 addition & 1 deletion controllers/grid/announcements/AnnouncementTypeGridRow.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function initialize($request, $template = null)
new AjaxModal(
$router->url($request, null, null, 'editAnnouncementType', null, $actionArgs),
__('grid.action.edit'),
'side-modal',
null,
true
),
__('grid.action.edit'),
Expand Down
1 change: 0 additions & 1 deletion controllers/grid/eventLog/linkAction/EmailLinkAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ public function __construct($request, $modalTitle, $actionArgs)
$ajaxModal = new AjaxModal(
$router->url($request, null, null, 'viewEmail', null, $actionArgs),
$modalTitle,
'side-modal'
);

// Configure the link action.
Expand Down
1 change: 0 additions & 1 deletion controllers/grid/files/LibraryFileGridHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ public function initialize($request, $args = null)
new AjaxModal(
$router->url($request, null, null, 'addFile', null, $this->getActionArgs()),
__('grid.action.addFile'),
'side-modal'
),
__('grid.action.addFile'),
'add'
Expand Down
1 change: 0 additions & 1 deletion controllers/grid/files/LibraryFileGridRow.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ public function initialize($request, $template = null)
new AjaxModal(
$router->url($request, null, null, 'editFile', null, $actionArgs),
__('grid.action.edit'),
'side-modal'
),
__('grid.action.edit'),
'edit'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ public function __construct($request, $actionArgs, $actionLabel, $modalTitle = n
$ajaxModal = new AjaxModal(
$router->url($request, null, null, 'selectFiles', null, $actionArgs),
$modalTitle,
'side-modal'
);

// Configure the link action.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ public function initialize($request, $args = null)
new AjaxModal(
$router->url($request, null, null, 'addFile', null, $this->getActionArgs()),
__('grid.action.addFile'),
'side-modal'
),
__('grid.action.addFile'),
'add'
Expand All @@ -90,7 +89,6 @@ public function initialize($request, $args = null)
new AjaxModal(
$router->url($request, null, null, 'viewLibrary', null, $this->getActionArgs()),
__('grid.action.viewLibrary'),
'side-modal'
),
__('grid.action.viewLibrary'),
'more_info'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public function initialize($request, $args = null)
new AjaxModal(
$router->url($request, null, null, 'addNavigationMenuItem', null, null),
__('grid.action.addNavigationMenuItem'),
'side-modal',
null,
true
),
__('grid.action.addNavigationMenuItem'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function initialize($request, $template = null)
new AjaxModal(
$router->url($request, null, null, 'editNavigationMenuItem', null, $actionArgs),
__('grid.action.edit'),
'side-modal',
null,
true
),
__('grid.action.edit'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function getCellActions($request, $row, $column, $position = GridHandler:
new AjaxModal(
$router->url($request, null, null, 'editNavigationMenu', null, $actionArgs),
__('grid.action.edit'),
'side-modal',
null,
true
),
htmlspecialchars($navigationMenu->getTitle())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public function initialize($request, $args = null)
new AjaxModal(
$router->url($request, null, null, 'addNavigationMenu', null, null),
__('grid.action.addNavigationMenu'),
'side-modal',
null,
true
),
__('grid.action.addNavigationMenu'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function initialize($request, $template = null)
new AjaxModal(
$router->url($request, null, null, 'editNavigationMenu', null, $actionArgs),
__('grid.action.edit'),
'side-modal',
null,
true
),
__('grid.action.edit'),
Expand Down
2 changes: 1 addition & 1 deletion controllers/grid/plugins/PluginGalleryGridCellProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function getCellActions($request, $row, $column, $position = GridHandler:
new AjaxModal(
$router->url($request, null, null, 'viewPlugin', null, ['rowId' => $row->getId() + 1]),
htmlspecialchars($element->getLocalizedName()),
'side-modal',
null,
true
),
htmlspecialchars($element->getLocalizedName()),
Expand Down
1 change: 0 additions & 1 deletion controllers/grid/plugins/PluginGridRow.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ public function initialize($request, $template = null)
new AjaxModal(
$router->url($request, null, null, 'upgradePlugin', null, $actionArgs),
__('manager.plugins.upgrade'),
'side-modal'
),
__('grid.action.upgrade'),
'upgrade'
Expand Down
2 changes: 0 additions & 2 deletions controllers/grid/queries/QueriesGridHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ public function initialize($request, $args = null)
new AjaxModal(
$router->url($request, null, null, 'addQuery', null, $this->getRequestArgs()),
__('grid.action.addQuery'),
'side-modal'
),
__('grid.action.addQuery'),
'add_item'
Expand Down Expand Up @@ -473,7 +472,6 @@ public function readQuery($args, $request)
new AjaxModal(
$router->url($request, null, null, 'editQuery', null, $actionArgs),
__('grid.action.updateQuery'),
'side-modal'
),
__('grid.action.edit'),
'edit'
Expand Down
1 change: 0 additions & 1 deletion controllers/grid/queries/QueriesGridRow.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ public function initialize($request, $template = null)
new AjaxModal(
$router->url($request, null, null, 'editQuery', null, $actionArgs),
__('grid.action.updateQuery'),
'side-modal'
),
__('grid.action.edit'),
'edit'
Expand Down
1 change: 0 additions & 1 deletion controllers/grid/queries/QueryTitleGridColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ public function getCellActions($request, $row, $position = GridHandler::GRID_ACT
new AjaxModal(
$router->url($request, null, null, 'readQuery', null, $actionArgs),
$headNote ? htmlspecialchars($headNote->title) : '—',
'side-modal'
),
($headNote?->title != '') ? htmlspecialchars($headNote->title) : '—',
null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ public function initialize($request, $args = null)
new AjaxModal(
$router->url($request, null, null, 'addCategory'),
__('grid.category.add'),
'side-modal'
),
__('grid.category.add'),
'add_category'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ public function initialize($request, $template = null)
new AjaxModal(
$router->url($request, null, null, 'editCategory', null, ['categoryId' => $categoryId]),
__('grid.category.edit'),
'side-modal'
),
$category->getLocalizedTitle()
), GridRow::GRID_ACTION_POSITION_ROW_CLICK);
Expand Down
1 change: 0 additions & 1 deletion controllers/grid/settings/category/CategoryGridRow.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public function initialize($request, $template = null)
new AjaxModal(
$router->url($request, null, null, 'editCategory', null, $actionArgs),
__('grid.category.edit'),
'side-modal'
),
__('grid.action.edit'),
'edit'
Expand Down
2 changes: 1 addition & 1 deletion controllers/grid/settings/genre/GenreGridHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function initialize($request, $args = null)
new AjaxModal(
$router->url($request, null, null, 'addGenre', null, $actionArgs),
__('grid.action.addGenre'),
'side-modal',
null,
true
),
__('grid.action.addGenre'),
Expand Down
2 changes: 1 addition & 1 deletion controllers/grid/settings/genre/GenreGridRow.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function initialize($request, $template = null)
new AjaxModal(
$router->url($request, null, null, 'editGenre', null, $actionArgs),
__('grid.action.edit'),
'side-modal',
null,
true
),
__('grid.action.edit'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function initialize($request, $args = null): void
new AjaxModal(
($request->getRouter())->url($request, null, null, 'addLanguageModal', null, null),
__('manager.language.gridAction.addLangauage'),
'side-modal',
null,
true,
'addLanguageForm'
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function initialize($request, $template = null)
new AjaxModal(
$router->url($request, null, null, 'editReviewFormElement', null, ['rowId' => $rowId, 'reviewFormId' => $element->getReviewFormId()]),
__('grid.action.edit'),
'side-modal',
null,
true
),
__('grid.action.edit'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function initialize($request, $args = null)
new AjaxModal(
$router->url($request, null, null, 'createReviewFormElement', null, ['reviewFormId' => $this->reviewFormId]),
__('manager.reviewFormElements.create'),
'side-modal',
null,
true
),
__('manager.reviewFormElements.create'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function initialize($request, $args = null)
new AjaxModal(
$router->url($request, null, null, 'createReviewForm', null, null),
__('manager.reviewForms.create'),
'side-modal',
null,
true
),
__('manager.reviewForms.create'),
Expand Down
4 changes: 2 additions & 2 deletions controllers/grid/settings/reviewForms/ReviewFormGridRow.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function initialize($request, $template = null)
new AjaxModal(
$router->url($request, null, null, 'editReviewForm', null, ['rowId' => $rowId]),
__('grid.action.edit'),
'side-modal',
null,
true
),
__('grid.action.edit'),
Expand Down Expand Up @@ -88,7 +88,7 @@ public function initialize($request, $template = null)
new AjaxModal(
$router->url($request, null, null, 'editReviewForm', null, ['rowId' => $rowId, 'preview' => 1]),
__('grid.action.preview'),
'side-modal',
null,
true
),
__('grid.action.preview'),
Expand Down
1 change: 0 additions & 1 deletion controllers/grid/settings/roles/UserGroupGridHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ public function initialize($request, $args = null)
new AjaxModal(
$router->url($request, null, null, 'addUserGroup'),
__('grid.roles.add'),
'side-modal'
),
__('grid.roles.add'),
'add_role'
Expand Down
1 change: 0 additions & 1 deletion controllers/grid/settings/roles/UserGroupGridRow.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public function initialize($request, $template = null)
new AjaxModal(
$router->url($request, null, null, 'editUserGroup', null, $actionArgs),
__('grid.action.edit'),
'side-modal'
),
__('grid.action.edit'),
'edit'
Expand Down
2 changes: 1 addition & 1 deletion controllers/grid/settings/user/UserGridHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function initialize($request, $args = null)
new AjaxModal(
$router->url($request, null, null, 'addUser', null, null),
__('grid.user.add'),
'side-modal',
null,
true
),
__('grid.user.add'),
Expand Down
Loading

0 comments on commit 2ea528d

Please sign in to comment.