diff options
Diffstat (limited to 'js/src/functions.js')
-rw-r--r-- | js/src/functions.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/js/src/functions.js b/js/src/functions.js index ea219b7f1c..cc515049d7 100644 --- a/js/src/functions.js +++ b/js/src/functions.js @@ -1,5 +1,4 @@ /* global Navigation */ -/* global isStorageSupported */ // js/config.js /* global ChartType, ColumnType, DataTable, JQPlotChartFactory */ // js/chart.js /* global DatabaseStructure */ // js/database/structure.js /* global mysqlDocBuiltin, mysqlDocKeyword */ // js/doclinks.js @@ -939,7 +938,7 @@ Functions.onloadIdleEvent = function () { function UpdateIdleTime () { var href = 'index.php?route=/'; var guid = 'default'; - if (isStorageSupported('sessionStorage')) { + if (window.Config.isStorageSupported('sessionStorage')) { guid = window.sessionStorage.guid; } var params = { @@ -974,7 +973,7 @@ Functions.onloadIdleEvent = function () { updateTimeout = window.setTimeout(UpdateIdleTime, interval); } else { // timeout occurred clearInterval(incInterval); - if (isStorageSupported('sessionStorage')) { + if (window.Config.isStorageSupported('sessionStorage')) { window.sessionStorage.clear(); } // append the login form on the page, disable all the forms which were not disabled already, close all the open jqueryui modal boxes @@ -1002,7 +1001,7 @@ Functions.onloadIdleEvent = function () { window.CommonParams.get('LoginCookieValidity'), window.CommonParams.get('session_gc_maxlifetime') ); - if (isStorageSupported('sessionStorage')) { + if (window.Config.isStorageSupported('sessionStorage')) { window.sessionStorage.setItem('guid', guid()); } var interval = (sessionTimeout - 5) * 1000; @@ -3515,7 +3514,7 @@ Functions.onloadRecentFavoriteTables = () => { cache: false, type: 'POST', data: { - 'favoriteTables': (isStorageSupported('localStorage') && typeof window.localStorage.favoriteTables !== 'undefined') + 'favoriteTables': (window.Config.isStorageSupported('localStorage') && typeof window.localStorage.favoriteTables !== 'undefined') ? window.localStorage.favoriteTables : '', 'server': window.CommonParams.get('server'), @@ -3523,7 +3522,7 @@ Functions.onloadRecentFavoriteTables = () => { }, success: function (data) { // Update localStorage. - if (isStorageSupported('localStorage')) { + if (window.Config.isStorageSupported('localStorage')) { window.localStorage.favoriteTables = data.favoriteTables; } $('#pma_favorite_list').html(data.list); |