From 45a02efafca973a9dec4964b55f30cba32e8edf9 Mon Sep 17 00:00:00 2001 From: Stephen Kraffmiller Date: Fri, 8 Jan 2016 14:29:35 -0500 Subject: [PATCH] #2797 add message when no files selected for editing tags --- src/main/webapp/dataset.xhtml | 20 ++++++++++++++++++++ src/main/webapp/filesFragment.xhtml | 10 ++++------ 2 files changed, 24 insertions(+), 6 deletions(-) diff --git a/src/main/webapp/dataset.xhtml b/src/main/webapp/dataset.xhtml index 48a7ad5b752..040907767f4 100755 --- a/src/main/webapp/dataset.xhtml +++ b/src/main/webapp/dataset.xhtml @@ -806,6 +806,17 @@ + + +

#{bundle['dataset.noSelectedFilesForMetadataEdit']}

+
+ +
+
+ + @@ -1277,6 +1288,15 @@ } + function testFilesSelectedForTags(){ + var count = PF('filesTable').getSelectedRowsCount(); + if (count === 0) { + PF('selectFilesForEditTags').show(); + } else { + refreshTagsCommand(); + } + } + function testFilesSelectedForDelete(){ var count = PF('filesTable').getSelectedRowsCount(); if (count === 0) { diff --git a/src/main/webapp/filesFragment.xhtml b/src/main/webapp/filesFragment.xhtml index 95a8fb9c8b4..51d4e40ea11 100644 --- a/src/main/webapp/filesFragment.xhtml +++ b/src/main/webapp/filesFragment.xhtml @@ -81,13 +81,11 @@
  • - - #{bundle['file.tags']} + + #{bundle['file.tags']} -
  • +