Skip to content

Commit

Permalink
pkp/pkp-lib#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 8, 2024
1 parent 1644187 commit 0eb335c
Show file tree
Hide file tree
Showing 15 changed files with 8 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ public function initialize($request, $args = null)
new AjaxModal(
$request->getRouter()->url($request, null, null, 'addGalley', null, $this->getRequestArgs()),
__('submission.layout.newGalley'),
'side-modal'
),
__('grid.action.addGalley'),
'add_item'
Expand Down
1 change: 0 additions & 1 deletion controllers/grid/articleGalleys/ArticleGalleyGridRow.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ public function initialize($request, $template = null)
new AjaxModal(
$router->url($request, null, null, 'editGalley', null, $actionArgs),
($this->_isEditable) ? __('submission.layout.editGalley') : __('submission.layout.viewGalley'),
'side-modal'
),
($this->_isEditable) ? __('grid.action.edit') : __('grid.action.view'),
'edit'
Expand Down
1 change: 0 additions & 1 deletion controllers/grid/issueGalleys/IssueGalleyGridHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ public function initialize($request, $args = null)
array_merge($this->getRequestArgs(), ['gridId' => $this->getId()])
),
__('grid.action.addIssueGalley'),
'side-modal'
),
__('grid.action.addIssueGalley'),
'add_category'
Expand Down
2 changes: 1 addition & 1 deletion controllers/grid/issueGalleys/IssueGalleyGridRow.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function initialize($request, $template = null)
array_merge($this->getRequestArgs(), ['issueGalleyId' => $issueGalleyId])
),
__('editor.issues.editIssueGalley'),
'side-modal',
null,
true
),
__('grid.action.edit'),
Expand Down
1 change: 0 additions & 1 deletion controllers/grid/issues/FutureIssueGridHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ public function initialize($request, $args = null)
new AjaxModal(
$router->url($request, null, null, 'addIssue', null, ['gridId' => $this->getId()]),
__('grid.action.addIssue'),
'side-modal'
),
__('grid.action.addIssue'),
'add_category'
Expand Down
2 changes: 1 addition & 1 deletion controllers/grid/issues/IssueGridCellProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function getCellActions($request, $row, $column, $position = GridHandler:
new AjaxModal(
$router->url($request, null, null, 'editIssue', null, ['issueId' => $issue->getId()]),
__('editor.issues.editIssue', ['issueIdentification' => htmlspecialchars($issue->getIssueIdentification())]),
'side-modal',
null,
true
),
$issue->getIssueIdentification()
Expand Down
3 changes: 1 addition & 2 deletions controllers/grid/issues/IssueGridRow.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function initialize($request, $template = null)
new AjaxModal(
$router->url($request, null, null, 'editIssue', null, ['issueId' => $issueId]),
__('editor.issues.editIssue', ['issueIdentification' => htmlspecialchars($issue->getIssueIdentification())]),
'side-modal',
null,
true
),
__('grid.action.edit'),
Expand Down Expand Up @@ -101,7 +101,6 @@ public function initialize($request, $template = null)
['issueId' => $issueId]
),
__('editor.issues.publishIssue'),
'primary'
),
__('editor.issues.publishIssue'),
'advance'
Expand Down
1 change: 0 additions & 1 deletion controllers/grid/settings/sections/SectionGridHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ public function initialize($request, $args = null)
new AjaxModal(
$router->url($request, null, null, 'addSection', null, ['gridId' => $this->getId()]),
__('manager.sections.create'),
'side-modal'
),
__('manager.sections.create'),
'add_section'
Expand Down
2 changes: 1 addition & 1 deletion controllers/grid/settings/sections/SectionGridRow.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function initialize($request, $template = null)
new AjaxModal(
$router->url($request, null, null, 'editSection', null, ['sectionId' => $sectionId]),
__('grid.action.edit'),
'side-modal',
null,
true
),
__('grid.action.edit'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ public function getCellActions($request, $row, $column, $position = GridHandler:
new AjaxModal(
$dispatcher->url($request, PKPApplication::ROUTE_COMPONENT, null, 'grid.issues.BackIssueGridHandler', 'editIssue', null, ['issueId' => $issue->getId()]),
__('plugins.importexport.common.settings.DOIPluginSettings'),
'side-modal'
),
$issue->getIssueIdentification(),
null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function initialize($request, $args = null)
new AjaxModal(
$router->url($request, null, null, 'addSubscriptionType', null, null),
__('manager.subscriptionTypes.create'),
'side-modal',
null,
true
),
__('manager.subscriptionTypes.create'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function initialize($request, $template = null)
new AjaxModal(
$router->url($request, null, null, 'editSubscriptionType', null, $actionArgs),
__('manager.subscriptionTypes.edit'),
'side-modal',
null,
true
),
__('common.edit'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function initialize($request, $args = null)
new AjaxModal(
$router->url($request, null, null, 'addSubscription', null, null),
__('manager.subscriptions.create'),
'side-modal',
null,
true
),
__('manager.subscriptions.create'),
Expand Down
2 changes: 1 addition & 1 deletion controllers/grid/subscriptions/SubscriptionsGridRow.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function initialize($request, $template = null)
new AjaxModal(
$router->url($request, null, null, 'editSubscription', null, $actionArgs),
__('manager.subscriptions.edit'),
'side-modal',
null,
true
),
__('common.edit'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ public function getActions($request, $verb)
new AjaxModal(
$router->url($request, null, null, 'manage', null, ['verb' => 'settings', 'plugin' => $this->getName(), 'category' => 'generic']),
$this->getDisplayName(),
'side-modal'
),
__('manager.plugins.settings'),
null
Expand Down

0 comments on commit 0eb335c

Please sign in to comment.