Skip to content

Commit

Permalink
Merge branch 'QA_4_6'
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Feb 15, 2016
2 parents f980812 + 729abb0 commit c2bfb74
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 25 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Expand Up @@ -77,6 +77,7 @@ phpMyAdmin - ChangeLog
- issue #11953 Do not fail getting filename with open_basedir limitations
- issue #11956 unrecognized keyword interval
- issue Field names and aliases are being correctly parsed now.
- issue #11959 Fix javascript error in setup

4.5.4.1 (2016-01-29)
- issue #11892 Error with PMA 4.4.15.3
Expand Down
24 changes: 24 additions & 0 deletions js/config.js
Expand Up @@ -3,6 +3,30 @@
* Functions used in configuration forms and on user preferences pages
*/

/**
* checks whether browser supports web storage
*
* @param type the type of storage i.e. localStorage or sessionStorage
*
* @returns bool
*/
function isStorageSupported(type)
{
try {
window[type].setItem('PMATest', 'test');
// Check whether key-value pair was set successfully
if (window[type].getItem('PMATest') === 'test') {
// Supported, remove test variable from storage
window[type].removeItem('PMATest');
return true;
}
} catch(error) {
// Not supported
PMA_ajaxShowMessage(PMA_messages.strNoLocalStorage, false);
}
return false;
}

/**
* Unbind all event handlers before tearing down a page
*/
Expand Down
24 changes: 0 additions & 24 deletions js/functions.js
Expand Up @@ -4855,30 +4855,6 @@ function PMA_ignorePhpErrors(clearPrevErrors){
$pmaErrors.remove();
}

/**
* checks whether browser supports web storage
*
* @param type the type of storage i.e. localStorage or sessionStorage
*
* @returns bool
*/
function isStorageSupported(type)
{
try {
window[type].setItem('PMATest', 'test');
// Check whether key-value pair was set successfully
if (window[type].getItem('PMATest') === 'test') {
// Supported, remove test variable from storage
window[type].removeItem('PMATest');
return true;
}
} catch(error) {
// Not supported
PMA_ajaxShowMessage(PMA_messages.strNoLocalStorage, false);
}
return false;
}

/**
* Unbind all event handlers before tearing down a page
*/
Expand Down
2 changes: 1 addition & 1 deletion libraries/Header.php
Expand Up @@ -195,12 +195,12 @@ private function _addDefaultScripts()
$this->_scripts->addFile(
'get_image.js.php?theme=' . $theme_id
);
$this->_scripts->addFile('config.js');
$this->_scripts->addFile('doclinks.js');
$this->_scripts->addFile('functions.js');
$this->_scripts->addFile('navigation.js');
$this->_scripts->addFile('indexes.js');
$this->_scripts->addFile('common.js');
$this->_scripts->addFile('config.js');
$this->_scripts->addFile('page_settings.js');
$this->_scripts->addCode($this->getJsParamsCode());
}
Expand Down

0 comments on commit c2bfb74

Please sign in to comment.