Skip to content

Commit

Permalink
Merge branch '4.2.3' of github.com:IQSS/dataverse_temp into 4.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
landreev committed Jan 8, 2016
2 parents 25eb2db + 45a02ef commit 7b60402
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
20 changes: 20 additions & 0 deletions src/main/webapp/dataset.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,17 @@
<p:commandButton value="#{bundle.close}" onclick="PF('selectFilesForEditMetadata').hide();PF('blockDatasetForm').hide();"/>
</div>
</p:dialog>

<p:dialog id="selectFilesForEditTags" styleClass="smallPopUp"
header="#{bundle['dataset.noSelectedFiles.header']}" widgetVar="selectFilesForEditTags" modal ="true">
<p class="text-danger"><span class="glyphicon glyphicon-warning-sign"/> #{bundle['dataset.noSelectedFilesForMetadataEdit']}</p>
<div class="button-block">
<p:commandButton value="#{bundle.close}" onclick="PF('selectFilesForEditTags').hide();PF('blockDatasetForm').hide();"/>
</div>
</p:dialog>

<p:remoteCommand name="refreshTagsCommand" action="#{DatasetPage.refreshTagsPopUp()}" update=":datasetForm:fileTagsPopup"
oncomplete="PF('fileTagsPopup').show();"/>

<!-- We no longer need this remoteCommand; see my comments in the javascript method testFilesSelectedForEditMetadata() -->
<!-- for more info. - L.A. 4.2.1 -->
Expand Down Expand Up @@ -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) {
Expand Down
10 changes: 4 additions & 6 deletions src/main/webapp/filesFragment.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,11 @@
</p:commandLink>
</li>
<li class="#{DatasetPage.locked ? 'disabled' : ''}">
<p:commandLink id="fileCategoriesLink"
actionListener="#{DatasetPage.refreshTagsPopUp()}"
update=":datasetForm:fileTagsPopup"
oncomplete="PF('fileTagsPopup').show();bind_bsui_components();">
#{bundle['file.tags']}
<p:commandLink id="fileCategoriesLinkTwo"
onclick="testFilesSelectedForTags()">
#{bundle['file.tags']}
</p:commandLink>
</li>
</li>
</ul>
<p:remoteCommand name="openEditFilesPageCommand2" partialSubmit="true" async="true" update="" action="#{DatasetPage.editFileMetadata()}" />
</div>
Expand Down

0 comments on commit 7b60402

Please sign in to comment.