@@ -84,14 +84,14 @@ AJAX.registerOnload('table/operations.js', function () {
8484 $ . post ( $form . attr ( 'action' ) , $form . serialize ( ) + argsep + 'submit_copy=Go' , function ( data ) {
8585 if ( typeof data !== 'undefined' && data . success === true ) {
8686 if ( $form . find ( 'input[name=\'switch_to_new\']' ) . prop ( 'checked' ) ) {
87- CommonParams . set (
87+ Navigation . update ( CommonParams . set (
8888 'db' ,
8989 $form . find ( 'select[name=\'target_db\'],input[name=\'target_db\']' ) . val ( )
90- ) ;
91- CommonParams . set (
90+ ) ) ;
91+ Navigation . update ( CommonParams . set (
9292 'table' ,
9393 $form . find ( 'input[name=\'new_name\']' ) . val ( )
94- ) ;
94+ ) ) ;
9595 refreshMainContent ( false ) ;
9696 AJAX . callback = ( ) => {
9797 ajaxShowMessage ( data . message ) ;
@@ -117,8 +117,8 @@ AJAX.registerOnload('table/operations.js', function () {
117117 var argsep = CommonParams . get ( 'arg_separator' ) ;
118118 $ . post ( $form . attr ( 'action' ) , $form . serialize ( ) + argsep + 'submit_move=1' , function ( data ) {
119119 if ( typeof data !== 'undefined' && data . success === true ) {
120- CommonParams . set ( 'db' , data . params . db ) ;
121- CommonParams . set ( 'table' , data . params . table ) ;
120+ Navigation . update ( CommonParams . set ( 'db' , data . params . db ) ) ;
121+ Navigation . update ( CommonParams . set ( 'table' , data . params . table ) ) ;
122122 refreshMainContent ( 'index.php?route=/table/sql' ) ;
123123 AJAX . callback = ( ) => {
124124 ajaxShowMessage ( data . message ) ;
@@ -168,7 +168,7 @@ AJAX.registerOnload('table/operations.js', function () {
168168 function submitOptionsForm ( ) {
169169 $ . post ( $form . attr ( 'action' ) , $form . serialize ( ) , function ( data ) {
170170 if ( typeof data !== 'undefined' && data . success === true ) {
171- CommonParams . set ( 'table' , data . params . table ) ;
171+ Navigation . update ( CommonParams . set ( 'table' , data . params . table ) ) ;
172172 refreshMainContent ( false ) ;
173173 AJAX . callback = ( ) => {
174174 $ ( '#page_content' ) . html ( data . message ) ;
@@ -293,7 +293,7 @@ AJAX.registerOnload('table/operations.js', function () {
293293 ajaxRemoveMessage ( $msgbox ) ;
294294 // Table deleted successfully, refresh both the frames
295295 Navigation . reload ( ) ;
296- CommonParams . set ( 'table' , '' ) ;
296+ Navigation . update ( CommonParams . set ( 'table' , '' ) ) ;
297297 refreshMainContent ( CommonParams . get ( 'opendb_url' ) ) ;
298298 AJAX . callback = ( ) => {
299299 ajaxShowMessage ( data . message ) ;
@@ -325,7 +325,7 @@ AJAX.registerOnload('table/operations.js', function () {
325325 ajaxRemoveMessage ( $msgbox ) ;
326326 // Table deleted successfully, refresh both the frames
327327 Navigation . reload ( ) ;
328- CommonParams . set ( 'table' , '' ) ;
328+ Navigation . update ( CommonParams . set ( 'table' , '' ) ) ;
329329 refreshMainContent ( CommonParams . get ( 'opendb_url' ) ) ;
330330 AJAX . callback = ( ) => {
331331 ajaxShowMessage ( data . message ) ;
0 commit comments