tab->space

This commit is contained in:
j 2016-02-07 19:23:10 +05:30
parent 8070b3b8a9
commit 8d2875455d

View file

@ -647,9 +647,9 @@ oml.getEditTooltip = function(title) {
// FIXME: this is still incorrect when you select a lot of filter items // FIXME: this is still incorrect when you select a lot of filter items
// and reload the page (will be advanced) // and reload the page (will be advanced)
var conditions, var conditions,
indices, indices,
state = {index: -1, key: '*', value: ''}, state = {index: -1, key: '*', value: ''},
ui = oml.user.ui; ui = oml.user.ui;
if (find.operator == '&') { if (find.operator == '&') {
// number of conditions that are not list or filters // number of conditions that are not list or filters
conditions = find.conditions.length conditions = find.conditions.length
@ -691,7 +691,7 @@ oml.getEditTooltip = function(title) {
oml.getFilterState = function(find) { oml.getFilterState = function(find) {
// A filter is selected if exactly one condition in an & query or every // A filter is selected if exactly one condition in an & query or every
// condition in an | query has the filter id as key and "==" as operator // condition in an | query has the filter id as key and "==" as operator
var ui = oml.user.ui; var ui = oml.user.ui;
return ui.filters.map(function(filter) { return ui.filters.map(function(filter) {
// FIXME: cant index be an empty array, instead of -1? // FIXME: cant index be an empty array, instead of -1?
var key = filter.id, var key = filter.id,
@ -835,11 +835,11 @@ oml.getOwnListNames = function() {
}; };
oml.getPageTitle = function(stateOrURL) { oml.getPageTitle = function(stateOrURL) {
var page = Ox.getObjectById( var page = Ox.getObjectById(
oml.config.pages, oml.config.pages,
Ox.isObject(stateOrURL) ? stateOrURL.page : stateOrURL.slice(1) Ox.isObject(stateOrURL) ? stateOrURL.page : stateOrURL.slice(1)
); );
return (page ? page.title + ' ' : '') + 'Open Media Library'; return (page ? page.title + ' ' : '') + 'Open Media Library';
}; };
oml.getSortOperator = function(key) { oml.getSortOperator = function(key) {