diff options
author | Tobias Mueller <tobias.mueller@hostpoint.ch> | 2015-02-02 13:21:46 +0300 |
---|---|---|
committer | Tobias Mueller <tobias.mueller@hostpoint.ch> | 2015-02-02 14:31:01 +0300 |
commit | 4f765c7c532d6c468ba9a8dd65cb02d4f683d8c7 (patch) | |
tree | e08a98efe84636ec8f80f523d6406c6300e4951e /js/console.js | |
parent | f8f05f36f7d5e148c4b8717d5c0260407a419543 (diff) |
Send server id to import.php in SQL console
Include server id in ajax post request, when sending the SQL from the ajax
request from SQL console.
Signed-off-by: Tobias Mueller <tobias.mueller@hostpoint.ch>
Diffstat (limited to 'js/console.js')
-rw-r--r-- | js/console.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/js/console.js b/js/console.js index 4a0f206cf8..86505729c5 100644 --- a/js/console.js +++ b/js/console.js @@ -82,6 +82,7 @@ var PMA_console = { '<input name="is_js_confirmed" value="0">' + '<textarea name="sql_query"></textarea>' + '<input name="console_message_id" value="0">' + + '<input name="server" value="">' + '<input name="db" value="">' + '<input name="table" value="">' + '<input name="token" value="' + @@ -206,6 +207,7 @@ var PMA_console = { return; } PMA_console.$requestForm.children('textarea').val(queryString); + PMA_console.$requestForm.children('[name=server]').attr('value', PMA_commonParams.get('server')); if(options && options.db) { PMA_console.$requestForm.children('[name=db]').val(options.db); if(options.table) { |