Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7356b40

Browse files
committed
Rewrite and integration of js/common.js
1 parent eedf07e commit 7356b40

24 files changed

Lines changed: 438 additions & 443 deletions

js/ajax.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,19 @@ var AJAX = {
160160
}
161161
if (data._reloadQuerywindow) {
162162
var params = data._reloadQuerywindow;
163-
reload_querywindow(
163+
PMA_querywindow.reload(
164164
params.db,
165165
params.table,
166166
params.sql_query
167167
);
168168
}
169169

170+
if (data._focusQuerywindow) {
171+
PMA_querywindow.focus(
172+
data._focusQuerywindow
173+
);
174+
}
175+
170176
if (data._title) {
171177
$('title').replaceWith(data._title);
172178
}
@@ -197,6 +203,9 @@ var AJAX = {
197203
AJAX.scriptHandler.load(data._scripts, 1);
198204
}
199205

206+
if (data._params) {
207+
PMA_commonParams.setAll(data._params);
208+
}
200209
$('#pma_errors').remove();
201210
if (data._errors) {
202211
$('<div/>', {id:'pma_errors'})

0 commit comments

Comments
 (0)