mirror of
https://github.com/vrana/adminer.git
synced 2025-08-13 18:14:07 +02:00
Ajax reload with POST data
This commit is contained in:
@@ -4,6 +4,9 @@
|
|||||||
* @param string first three characters of database system version
|
* @param string first three characters of database system version
|
||||||
*/
|
*/
|
||||||
function bodyLoad(version) {
|
function bodyLoad(version) {
|
||||||
|
if (history.state) { // copied from editor/static/editing.js
|
||||||
|
onpopstate(history);
|
||||||
|
}
|
||||||
var jushRoot = '../externals/jush/';
|
var jushRoot = '../externals/jush/';
|
||||||
var script = document.createElement('script');
|
var script = document.createElement('script');
|
||||||
script.src = jushRoot + 'jush.js';
|
script.src = jushRoot + 'jush.js';
|
||||||
|
@@ -354,7 +354,7 @@ function ajaxMain(url, data, event) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Revive page from history
|
/** Revive page from history
|
||||||
* @param PopStateEvent
|
* @param PopStateEvent|history
|
||||||
*/
|
*/
|
||||||
window.onpopstate = function (event) {
|
window.onpopstate = function (event) {
|
||||||
ajaxSend(location.href, event.state, 1); // 1 - disable pushState
|
ajaxSend(location.href, event.state, 1); // 1 - disable pushState
|
||||||
|
@@ -1,4 +1,7 @@
|
|||||||
// Editor specific functions
|
// Editor specific functions
|
||||||
|
|
||||||
function bodyLoad(version) {
|
function bodyLoad(version) {
|
||||||
|
if (history.state) {
|
||||||
|
onpopstate(history);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user