move public list to the top

This commit is contained in:
j 2019-01-19 18:39:34 +05:30
commit 9c393cdd56
4 changed files with 42 additions and 10 deletions

View file

@ -7,12 +7,13 @@ oml.ui.folderList = function(options) {
that = Ox.TableList({
columns: [
{
format: function(value) {
format: function(value, data) {
return $('<img>')
.attr({
src: Ox.UI.getImageURL(
value == 'libraries' ? 'symbolData'
: value == 'library' ? 'symbolUser'
: data.name == 'Public' ? 'symbolPublish'
: value == 'static' ? 'symbolClick'
: 'symbolFind'
)