mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Media Library: "Select All" visibility bound to having at least one item
This commit is contained in:
@@ -22,7 +22,11 @@
|
||||
<a href="#" data-bind="attr: { href: '@HttpUtility.JavaScriptStringEncode(Url.Action("Create", "Folder", new { area = "Orchard.MediaLibrary"}))?folderPath=' + encodeURIComponent(displayed() ? displayed() : '') }" class="button" id="button-create-folder">@T("Create Folder")</a>
|
||||
|
||||
@Display(Model.CustomActionsShapes)
|
||||
<button class="button" id="select-all-button" data-select-all-text="@T("Select All")" data-select-none-text="@T("Select None")">@T("Select All")</button>
|
||||
<button class="button" id="select-all-button"
|
||||
data-select-all-text="@T("Select All")" data-select-none-text="@T("Select None")"
|
||||
data-bind="visible: results().length > 0">
|
||||
@T("Select All")
|
||||
</button>
|
||||
</div>
|
||||
<div id="media-library-main">
|
||||
<div id="media-library-main-navigation">
|
||||
|
||||
Reference in New Issue
Block a user