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
// and reload the page (will be advanced)
var conditions,
indices,
state = {index: -1, key: '*', value: ''},
ui = oml.user.ui;
indices,
state = {index: -1, key: '*', value: ''},
ui = oml.user.ui;
if (find.operator == '&') {
// number of conditions that are not list or filters
conditions = find.conditions.length
@ -691,7 +691,7 @@ oml.getEditTooltip = function(title) {
oml.getFilterState = function(find) {
// 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
var ui = oml.user.ui;
var ui = oml.user.ui;
return ui.filters.map(function(filter) {
// FIXME: cant index be an empty array, instead of -1?
var key = filter.id,
@ -835,11 +835,11 @@ oml.getOwnListNames = function() {
};
oml.getPageTitle = function(stateOrURL) {
var page = Ox.getObjectById(
var page = Ox.getObjectById(
oml.config.pages,
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) {