From 2bf5acb147b3115301b3a15ca43898ec1a60e158 Mon Sep 17 00:00:00 2001 From: Daniel Berthereau Date: Fri, 25 May 2018 00:00:00 +0200 Subject: [PATCH] Used a class instead of a data to select values with batch process. --- application/asset/js/global.js | 2 +- application/view/omeka/admin/item-set/browse.phtml | 8 ++++---- application/view/omeka/admin/item/browse.phtml | 8 ++++---- application/view/omeka/admin/media/browse.phtml | 8 ++++---- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/application/asset/js/global.js b/application/asset/js/global.js index 9c2069488a..a201e56c92 100644 --- a/application/asset/js/global.js +++ b/application/asset/js/global.js @@ -188,7 +188,7 @@ var Omeka = { }, manageSelectedActions: function() { - var selectedOptions = $('#batch-form .batch-inputs [data-select=selected]'); + var selectedOptions = $('#batch-form .batch-inputs .batch-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 9448baaabc..e4cdf21950 100644 --- a/application/view/omeka/admin/item-set/browse.phtml +++ b/application/view/omeka/admin/item-set/browse.phtml @@ -53,12 +53,12 @@ $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 e764d792bc..9095b3efc6 100644 --- a/application/view/omeka/admin/item/browse.phtml +++ b/application/view/omeka/admin/item/browse.phtml @@ -53,12 +53,12 @@ $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 57d4bd136f..cb5c469fc3 100644 --- a/application/view/omeka/admin/media/browse.phtml +++ b/application/view/omeka/admin/media/browse.phtml @@ -51,12 +51,12 @@ $userIsAllowedBatchDelete = $this->userIsAllowed('Omeka\Api\Adapter\MediaAdapter