2014-02-03 08:58:23 +00:00
|
|
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
|
|
|
'use strict';
|
|
|
|
pandora.ui.folderPlaceholder = function(id, section) {
|
|
|
|
var that = Ox.Element()
|
|
|
|
.addClass('OxLight')
|
|
|
|
.css({
|
|
|
|
height: '14px',
|
|
|
|
padding: '1px 4px',
|
|
|
|
});
|
2014-02-13 15:53:26 +00:00
|
|
|
that.updateText = function(string, isFind) {
|
2014-02-03 08:58:23 +00:00
|
|
|
return that.html(
|
2014-02-14 15:23:59 +00:00
|
|
|
string != 'volumes'
|
|
|
|
? Ox._('No {0} {1}' + (isFind ? ' found' : ''),
|
|
|
|
[Ox._(string), Ox._(section == 'items' ? 'lists' : section)])
|
|
|
|
: Ox._('No local volumes')
|
2014-02-03 08:58:23 +00:00
|
|
|
);
|
|
|
|
};
|
|
|
|
return that.updateText(id);
|
|
|
|
};
|
|
|
|
|