Skip to content

Commit

Permalink
Rewrite and integration of js/common.js
Browse files Browse the repository at this point in the history
  • Loading branch information
roccivic committed Oct 30, 2012
1 parent eedf07e commit 7356b40
Show file tree
Hide file tree
Showing 24 changed files with 438 additions and 443 deletions.
11 changes: 10 additions & 1 deletion js/ajax.js
Expand Up @@ -160,13 +160,19 @@ var AJAX = {
}
if (data._reloadQuerywindow) {
var params = data._reloadQuerywindow;
reload_querywindow(
PMA_querywindow.reload(
params.db,
params.table,
params.sql_query
);
}

if (data._focusQuerywindow) {
PMA_querywindow.focus(
data._focusQuerywindow
);
}

if (data._title) {
$('title').replaceWith(data._title);
}
Expand Down Expand Up @@ -197,6 +203,9 @@ var AJAX = {
AJAX.scriptHandler.load(data._scripts, 1);
}

if (data._params) {
PMA_commonParams.setAll(data._params);
}
$('#pma_errors').remove();
if (data._errors) {
$('<div/>', {id:'pma_errors'})
Expand Down

0 comments on commit 7356b40

Please sign in to comment.