Added throbber to library to show progress whilst loading media items

This commit is contained in:
Matt@MBP13-PC
2012-08-21 08:17:07 -01:00
parent 605e66c159
commit c1278674c3
2 changed files with 7 additions and 0 deletions

View File

@@ -142,6 +142,10 @@
width: 200px;
}
.umbFolderBrowser .throbber {
margin: 0 20px;
}
.umbFolderBrowser .items {
margin: 5px 15px;
padding: 0;

View File

@@ -115,6 +115,9 @@ namespace Umbraco.Web.UI.Controls
// Create the filter input
sb.Append("<div class='filter'>Filter: <input type='text' data-bind=\"value: filterTerm, valueUpdate: 'afterkeydown'\" /></div>");
// Create throbber to display whilst loading items
sb.Append("<img src='images/throbber.gif' alt='' class='throbber' data-bind=\"visible: filtered().length == 0\" />");
// Create thumbnails container
sb.Append("<ul class='items' data-bind='foreach: filtered'>" +
"<li data-bind=\"attr: { 'data-id': Id, 'data-order': $index() }, css: { selected: selected() }, event: { mousedown: toggleSelected, contextmenu: toggleSelected, dblclick: edit }\"><div><span class='img'><img data-bind='attr: { src: ThumbnailUrl }' /></span><span data-bind='text: Name'></span></div></li>" +