Skip to content

Commit

Permalink
pkp/pkp-lib#10444 Add modalStyle when using AjaxModal modal
Browse files Browse the repository at this point in the history
  • Loading branch information
blesildaramirez committed Oct 11, 2024
1 parent d2f267e commit 5590db4
Show file tree
Hide file tree
Showing 19 changed files with 22 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public function initialize($request, $args = null)
new AjaxModal(
$router->url($request, null, null, 'addCode', null, $actionArgs),
__('grid.action.addCode'),
'modal_add_item'
'side-modal'
),
__('grid.action.addCode'),
'add_item'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function initialize($request, $template = null)
new AjaxModal(
$router->url($request, null, null, 'editCode', null, $actionArgs),
__('grid.action.edit'),
'modal_edit'
'side-modal'
),
__('grid.action.edit'),
'edit'
Expand Down
2 changes: 1 addition & 1 deletion controllers/grid/catalogEntry/MarketsGridHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public function initialize($request, $args = null)
new AjaxModal(
$router->url($request, null, null, 'addMarket', null, $actionArgs),
__('grid.action.addMarket'),
'modal_add_item'
'side-modal'
),
__('grid.action.addMarket'),
'add_item'
Expand Down
2 changes: 1 addition & 1 deletion controllers/grid/catalogEntry/MarketsGridRow.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function initialize($request, $template = null)
new AjaxModal(
$router->url($request, null, null, 'editMarket', null, $actionArgs),
__('grid.action.edit'),
'modal_edit'
'side-modal'
),
__('grid.action.edit'),
'edit'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public function initialize($request, $args = null)
new AjaxModal(
$router->url($request, null, null, 'addDate', null, $actionArgs),
__('grid.action.addDate'),
'modal_add_item'
'side-modal'
),
__('grid.action.addDate'),
'add_item'
Expand Down
2 changes: 1 addition & 1 deletion controllers/grid/catalogEntry/PublicationDateGridRow.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function initialize($request, $template = null)
new AjaxModal(
$router->url($request, null, null, 'editDate', null, $actionArgs),
__('grid.action.edit'),
'modal_edit'
'side-modal'
),
__('grid.action.edit'),
'edit'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function initialize($request, $template = null)
new AjaxModal(
$router->url($request, null, null, 'editFormat', null, $actionArgs),
__('grid.action.edit'),
'modal_edit'
'side-modal'
),
__('grid.action.edit'),
'edit'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ public function getCellActions($request, $row, $column, $position = GridHandler:
]
),
__('grid.catalogEntry.approvedRepresentation.title'),
'modal_approve'
'side-modal'
),
$data->getIsApproved() ? __('submission.complete') : __('submission.incomplete'),
$data->getIsApproved() ? 'complete' : 'incomplete',
Expand Down Expand Up @@ -261,7 +261,7 @@ public function getCellActions($request, $row, $column, $position = GridHandler:
'representationId' => $submissionFile->getData('assocId'),
]),
__('editor.monograph.approvedProofs.edit'),
'edit'
'side-modal'
),
__($salesTypeString),
$salesType
Expand All @@ -288,7 +288,7 @@ public function getCellActions($request, $row, $column, $position = GridHandler:
]
),
$title,
'modal_approve'
'side-modal'
),
$submissionFile->getViewable() ? __('grid.catalogEntry.availableRepresentation.approved') : __('grid.catalogEntry.availableRepresentation.notApproved'),
$submissionFile->getViewable() ? 'complete' : 'incomplete',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public function initialize($request, $args = null)
new AjaxModal(
$router->url($request, null, null, 'addFormat', null, $actionArgs),
__('grid.action.addFormat'),
'modal_add_item'
'side-modal'
),
__('grid.action.addFormat'),
'add_item'
Expand Down
2 changes: 1 addition & 1 deletion controllers/grid/catalogEntry/PublicationFormatGridRow.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function initialize($request, $template = 'controllers/grid/gridRow.tpl')
]
)),
__('submission.dependentFiles'),
'modal_edit'
'side-modal'
),
__('submission.dependentFiles'),
'edit'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public function initialize($request, $args = null)
new AjaxModal(
$router->url($request, null, null, 'addRepresentative', null, $actionArgs),
__('grid.action.addRepresentative'),
'modal_add_item'
'side-modal'
),
__('grid.action.addRepresentative'),
'add_item'
Expand Down
2 changes: 1 addition & 1 deletion controllers/grid/catalogEntry/RepresentativesGridRow.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function initialize($request, $template = null)
new AjaxModal(
$router->url($request, null, null, 'editRepresentative', null, $actionArgs),
__('grid.action.edit'),
'modal_edit'
'side-modal'
),
__('grid.action.edit'),
'edit'
Expand Down
2 changes: 1 addition & 1 deletion controllers/grid/catalogEntry/SalesRightsGridHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public function initialize($request, $args = null)
new AjaxModal(
$router->url($request, null, null, 'addRights', null, $actionArgs),
__('grid.action.addRights'),
'modal_add_item'
'side-modal'
),
__('grid.action.addRights'),
'add_item'
Expand Down
2 changes: 1 addition & 1 deletion controllers/grid/catalogEntry/SalesRightsGridRow.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function initialize($request, $template = null)
new AjaxModal(
$router->url($request, null, null, 'editRights', null, $actionArgs),
__('grid.action.edit'),
'modal_edit'
'side-modal'
),
__('grid.action.edit'),
'edit'
Expand Down
2 changes: 1 addition & 1 deletion controllers/grid/settings/series/SeriesGridHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public function initialize($request, $args = null)
new AjaxModal(
$router->url($request, null, null, 'addSeries', null, ['gridId' => $this->getId()]),
__('grid.action.addSeries'),
'modal_manage'
'side-modal'
),
__('grid.action.addSeries'),
'add_category'
Expand Down
2 changes: 1 addition & 1 deletion controllers/grid/settings/series/SeriesGridRow.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, 'editSeries', null, ['seriesId' => $seriesId]),
__('grid.action.edit'),
'modal_edit',
'side-modal',
true
),
__('grid.action.edit'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function getCellActions($request, $row, $column, $position = GridHandler:
new AjaxModal(
$router->url($request, null, null, 'editChapter', null, $actionArgs),
__('submission.chapter.editChapter'),
'modal_edit'
'side-modal'
),
htmlspecialchars($chapter->getLocalizedTitle())
)
Expand Down
2 changes: 1 addition & 1 deletion controllers/grid/users/chapter/ChapterGridHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public function initialize($request, $args = null)
new AjaxModal(
$router->url($request, null, null, 'addChapter', null, $actionArgs),
__('submission.chapter.addChapter'),
'modal_add_item'
'side-modal'
),
__('submission.chapter.addChapter'),
'add_item'
Expand Down
3 changes: 2 additions & 1 deletion plugins/blocks/browse/BrowseBlockPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ public function getActions($request, $actionArgs)
'settings',
new AjaxModal(
$router->url($request, null, null, 'manage', null, array_merge($actionArgs, ['verb' => 'settings'])),
$this->getDisplayName()
$this->getDisplayName(),
'side-modal'
),
__('manager.plugins.settings'),
null
Expand Down

0 comments on commit 5590db4

Please sign in to comment.