diff options
author | Marc Delisle <marc@infomarc.info> | 2007-02-10 18:58:46 +0300 |
---|---|---|
committer | Marc Delisle <marc@infomarc.info> | 2007-02-10 18:58:46 +0300 |
commit | 42ac66ad749fdeee60cf402bc3ae3dda920dbcd6 (patch) | |
tree | 47f19903fa1be65528f038ee55c3abf0f57b6ca2 /js | |
parent | f0ba262783294df4ea1eae97c72ce3474e52f69a (diff) |
get rid of propicon
Diffstat (limited to 'js')
-rw-r--r-- | js/querywindow.js | 49 |
1 files changed, 36 insertions, 13 deletions
diff --git a/js/querywindow.js b/js/querywindow.js index dfd2a0f3b3..6fc799d96d 100644 --- a/js/querywindow.js +++ b/js/querywindow.js @@ -63,6 +63,19 @@ function setTable(new_table) { } } +/** + * reloads mian frame + * + * @uses goTo() + * @uses opendb_url + * @uses db + * @uses server + * @uses table + * @uses lang + * @uses collation_connection + * @uses encodeURIComponent() + * @param string url name of page to be loaded + */ function refreshMain(url) { if (! url) { if (db) { @@ -71,20 +84,31 @@ function refreshMain(url) { url = 'main.php'; } } - goTo( url + '?server=' + server + - '&db=' + db + - '&table=' + table + - '&lang=' + lang + - '&collation_connection=' + collation_connection, - 'main' ); + goTo(url + '?server=' + encodeURIComponent(server) + + '&db=' + encodeURIComponent(db) + + '&table=' + encodeURIComponent(table) + + '&lang=' + encodeURIComponent(lang) + + '&collation_connection=' + encodeURIComponent(collation_connection), + 'main'); } +/** + * reloads navigation frame + * + * @uses goTo() + * @uses db + * @uses server + * @uses table + * @uses lang + * @uses collation_connection + * @uses encodeURIComponent() + */ function refreshNavigation() { - goTo('navigation.php?server=' + server + - '&db=' + db + - '&table=' + table + - '&lang=' + lang + - '&collation_connection=' + collation_connection + goTo('navigation.php?server=' + encodeURIComponent(server) + + '&db=' + encodeURIComponent(db) + + '&table=' + encodeURIComponent(table) + + '&lang=' + encodeURIComponent(lang) + + '&collation_connection=' + encodeURIComponent(collation_connection) ); } @@ -247,7 +271,7 @@ function insertQuery() { function open_querywindow( url ) { if ( ! url ) { - url = 'querywindow.php?' + common_query + '&db=' + db + '&table=' + table; + url = 'querywindow.php?' + encodeURIComponent(common_query) + '&db=' + encodeURIComponent(db) + '&table=' + encodeURIComponent(table); } if (!querywindow.closed && querywindow.location) { @@ -290,7 +314,6 @@ function refreshQuerywindow( url ) { * @param string target frame where to load the new url */ function goTo(targeturl, target) { - //alert('goto'); if ( target == 'main' ) { target = window.frame_content; } else if ( target == 'query' ) { |