* @param string first three characters of database system version
*/
function bodyLoad(version) {
- onpopstate(history); // copied from editor/static/editing.js
+ if (history.state !== undefined) { // copied from editor/static/editing.js
+ onpopstate(history);
+ }
var jushRoot = '../externals/jush/';
var script = document.createElement('script');
script.src = jushRoot + 'jush.js';
onpopstate = function (event) {
if (event.state ? confirm(areYouSure) : ajaxState) {
ajaxSend(location.href, event.state, 1); // 1 - disable pushState
+ } else {
+ ajaxState++;
}
}
+Adminer 3.2.2-dev:
+Fix AJAX history after reload
+
Adminer 3.2.1 (released 2011-03-23):
Ability to save expression in edit
Respect default database collation (bug #3191489)
// Editor specific functions
function bodyLoad(version) {
- onpopstate(history);
+ if (history.state !== undefined) {
+ onpopstate(history);
+ }
}