diff --git a/static/js/utils.js b/static/js/utils.js index 0ac1f51..3d7d1c6 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -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) {