bug #1477576 with rtl langs, navi links open in wrong frame - fixed

This commit is contained in:
Sebastian Mendel
2006-07-04 12:41:37 +00:00
parent b6c15a38f0
commit 94870ed62d

View File

@@ -71,7 +71,7 @@ function refreshMain(url) {
url = 'main.php'; url = 'main.php';
} }
} }
goTo( url + '?&server=' + server + goTo( url + '?server=' + server +
'&db=' + db + '&db=' + db +
'&table=' + table + '&table=' + table +
'&lang=' + lang + '&lang=' + lang +
@@ -80,7 +80,7 @@ function refreshMain(url) {
} }
function refreshNavigation() { function refreshNavigation() {
goTo('left.php?&server=' + server + goTo('left.php?server=' + server +
'&db=' + db + '&db=' + db +
'&table=' + table + '&table=' + table +
'&lang=' + lang + '&lang=' + lang +
@@ -289,7 +289,7 @@ function refreshQuerywindow( url ) {
* @param string targeturl new url to load * @param string targeturl new url to load
* @param string target frame where to load the new url * @param string target frame where to load the new url
*/ */
function goTo( targeturl, target ) { function goTo(targeturl, target) {
//alert('goto'); //alert('goto');
if ( target == 'main' ) { if ( target == 'main' ) {
target = window.frame_content; target = window.frame_content;
@@ -297,7 +297,7 @@ function goTo( targeturl, target ) {
target = querywindow; target = querywindow;
//return open_querywindow( targeturl ); //return open_querywindow( targeturl );
} else if ( ! target ) { } else if ( ! target ) {
target = window.frame_content; target = window.frame_navigation;
} }
if ( target ) { if ( target ) {
@@ -318,11 +318,11 @@ function goTo( targeturl, target ) {
} }
// opens selected db in main frame // opens selected db in main frame
function openDb( new_db ) { function openDb(new_db) {
//alert('opendb(' + new_db + ')'); //alert('opendb(' + new_db + ')');
setDb( new_db ); setDb(new_db);
setTable( '' ); setTable('');
refreshMain( opendb_url ); refreshMain(opendb_url);
return true; return true;
} }