diff options
Diffstat (limited to 'js/src/export.js')
-rw-r--r-- | js/src/export.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/js/src/export.js b/js/src/export.js index 0ac8ca8367..85b2880561 100644 --- a/js/src/export.js +++ b/js/src/export.js @@ -92,7 +92,7 @@ Export.createTemplate = function (name) { $(this).prop('selected', true); } }); - Functions.ajaxShowMessage(Messages.strTemplateCreated); + Functions.ajaxShowMessage(window.Messages.strTemplateCreated); } else { Functions.ajaxShowMessage(response.error, false); } @@ -139,7 +139,7 @@ Export.loadTemplate = function (id) { } }); $('input[name="template_id"]').val(id); - Functions.ajaxShowMessage(Messages.strTemplateLoaded); + Functions.ajaxShowMessage(window.Messages.strTemplateLoaded); } else { Functions.ajaxShowMessage(response.error, false); } @@ -167,7 +167,7 @@ Export.updateTemplate = function (id) { Functions.ajaxShowMessage(); $.post('index.php?route=/export/template/update', params, function (response) { if (response.success === true) { - Functions.ajaxShowMessage(Messages.strTemplateUpdated); + Functions.ajaxShowMessage(window.Messages.strTemplateUpdated); } else { Functions.ajaxShowMessage(response.error, false); } @@ -193,7 +193,7 @@ Export.deleteTemplate = function (id) { $.post('index.php?route=/export/template/delete', params, function (response) { if (response.success === true) { $('#template').find('option[value="' + id + '"]').remove(); - Functions.ajaxShowMessage(Messages.strTemplateDeleted); + Functions.ajaxShowMessage(window.Messages.strTemplateDeleted); } else { Functions.ajaxShowMessage(response.error, false); } @@ -233,7 +233,7 @@ window.AJAX.registerOnload('export.js', function () { var modal = $('#showSqlQueryModal'); modal.modal('show'); modal.on('shown.bs.modal', function () { - $('#showSqlQueryModalLabel').first().html(Messages.strQuery); + $('#showSqlQueryModalLabel').first().html(window.Messages.strQuery); Functions.highlightSql(modal); }); }); @@ -731,7 +731,7 @@ Export.checkTimeOut = function (timeLimit) { if (data.message === 'timeout') { Functions.ajaxShowMessage( '<div class="alert alert-danger" role="alert">' + - Messages.strTimeOutError + + window.Messages.strTimeOutError + '</div>', false ); @@ -927,7 +927,7 @@ window.AJAX.registerOnload('export.js', function () { e.preventDefault(); var db = $('#db_alias_select').val(); Export.addAlias( - Messages.strAliasDatabase, + window.Messages.strAliasDatabase, db, 'aliases[' + db + '][alias]', $('#db_alias_name').val() @@ -939,7 +939,7 @@ window.AJAX.registerOnload('export.js', function () { var db = $('#db_alias_select').val(); var table = $('#table_alias_select').val(); Export.addAlias( - Messages.strAliasTable, + window.Messages.strAliasTable, db + '.' + table, 'aliases[' + db + '][tables][' + table + '][alias]', $('#table_alias_name').val() @@ -952,7 +952,7 @@ window.AJAX.registerOnload('export.js', function () { var table = $('#table_alias_select').val(); var column = $('#column_alias_select').val(); Export.addAlias( - Messages.strAliasColumn, + window.Messages.strAliasColumn, db + '.' + table + '.' + column, 'aliases[' + db + '][tables][' + table + '][colums][' + column + ']', $('#column_alias_name').val() |