From 03d57e28c19f8f70b85c6b887374094a89f3856a Mon Sep 17 00:00:00 2001 From: Daniel Berthereau Date: Mon, 21 May 2018 00:00:00 +0200 Subject: [PATCH] Genericized batch actions js for browse pages. --- application/asset/js/global.js | 2 +- application/view/omeka/admin/item-set/browse.phtml | 14 +++++++------- application/view/omeka/admin/item/browse.phtml | 14 +++++++------- application/view/omeka/admin/media/browse.phtml | 14 +++++++------- 4 files changed, 22 insertions(+), 22 deletions(-) diff --git a/application/asset/js/global.js b/application/asset/js/global.js index 92e17ef87c..9c2069488a 100644 --- a/application/asset/js/global.js +++ b/application/asset/js/global.js @@ -188,7 +188,7 @@ var Omeka = { }, manageSelectedActions: function() { - var selectedOptions = $('[value="update-selected"], [value="delete-selected"]'); + var selectedOptions = $('#batch-form .batch-inputs [data-select=selected]'); if ($('.batch-edit td input[type="checkbox"]:checked').length > 0) { selectedOptions.removeAttr('disabled'); } else { diff --git a/application/view/omeka/admin/item-set/browse.phtml b/application/view/omeka/admin/item-set/browse.phtml index 16364fa13c..9448baaabc 100644 --- a/application/view/omeka/admin/item-set/browse.phtml +++ b/application/view/omeka/admin/item-set/browse.phtml @@ -50,22 +50,22 @@ $userIsAllowedBatchDelete = $this->userIsAllowed('Omeka\Api\Adapter\ItemSetAdapt ?>
- - - + + - - + +
- - + + diff --git a/application/view/omeka/admin/item/browse.phtml b/application/view/omeka/admin/item/browse.phtml index bd6040e24a..e764d792bc 100644 --- a/application/view/omeka/admin/item/browse.phtml +++ b/application/view/omeka/admin/item/browse.phtml @@ -50,22 +50,22 @@ $userIsAllowedBatchDelete = $this->userIsAllowed('Omeka\Api\Adapter\ItemAdapter' ?>
- - - + + - - + +
- - + + diff --git a/application/view/omeka/admin/media/browse.phtml b/application/view/omeka/admin/media/browse.phtml index 5367ecaf3c..57d4bd136f 100644 --- a/application/view/omeka/admin/media/browse.phtml +++ b/application/view/omeka/admin/media/browse.phtml @@ -48,22 +48,22 @@ $userIsAllowedBatchDelete = $this->userIsAllowed('Omeka\Api\Adapter\MediaAdapter ?>
- - - + + - - + +
- - + +