Merge pull request #953 from mebjas/QA_4_1

Replication of bug #4292 in inline sql edit
This commit is contained in:
Marc Delisle 2014-02-21 12:25:30 -05:00
commit 0186cb40ff
2 changed files with 9 additions and 0 deletions

View File

@ -294,6 +294,13 @@ var AJAX = {
}
if (data._selflink) {
var source = data._selflink.split('?')[0];
//Check for faulty links
if (source == "import.php") {
var replacement = "tbl_sql.php";
data._selflink = data._selflink.replace(source,replacement);
}
$('#selflink > a').attr('href', data._selflink);
}
if (data._scripts) {

View File

@ -1389,6 +1389,8 @@ AJAX.registerOnload('functions.js', function () {
});
$("input#sql_query_edit_save").live('click', function () {
$(".success").hide();
//hide already existing success message
var sql_query;
if (codemirror_inline_editor) {
sql_query = codemirror_inline_editor.getValue();