diff --git a/adminer/create.inc.php b/adminer/create.inc.php index e1128e6f..6b7e5287 100644 --- a/adminer/create.inc.php +++ b/adminer/create.inc.php @@ -157,9 +157,7 @@ foreach ($engines as $engine) {

: "> - + ' : ''); ?>

diff --git a/adminer/static/functions.js b/adminer/static/functions.js index 436d827e..4edba2e9 100644 --- a/adminer/static/functions.js +++ b/adminer/static/functions.js @@ -236,6 +236,14 @@ function ajaxSend(url, data) { if (currentState == ajaxState) { clearTimeout(ajaxTimeout); setHtml('content', text); + var content = document.getElementById('content'); + var scripts = content.getElementsByTagName('script'); + var length = scripts.length; // required to avoid infinite loop + for (var i=0; i < length; i++) { + var script = document.createElement('script'); + script.text = scripts[i].text; + content.appendChild(script); + } if (window.jush) { jush.highlight_tag('code', 0); } diff --git a/changes.txt b/changes.txt index 4ba42d83..0dfe60a8 100644 --- a/changes.txt +++ b/changes.txt @@ -1,6 +1,6 @@ Adminer 3.2.0-dev: Get long texts and slow information by AJAX -All operations on select page by AJAX in browsers with support for history.pushState +All links and some forms by AJAX in browsers with support for history.pushState Adminer 3.1.0 (released 2010-11-16): TSV export and import