pandora/static/js/folderPlaceholder.js

22 lines
614 B
JavaScript

'use strict';
pandora.ui.folderPlaceholder = function(id, section) {
var that = Ox.Element()
.addClass('OxLight')
.css({
height: '14px',
padding: '1px 4px',
}),
folderItems = pandora.getFolderItems(section);
that.updateText = function(string, isFind) {
return that.html(
string != 'volumes'
? Ox._('No {0} {1}' + (isFind ? ' found' : ''),
[Ox._(string), Ox._(folderItems.toLowerCase())])
: Ox._('No local volumes')
);
};
return that.updateText(id);
};