mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-24 23:36:48 -06:00
Fixing the javascript file after running pga_eslint.js script
This commit is contained in:
parent
4d8b7556f8
commit
404f1cc8ef
@ -1,6 +1,6 @@
|
||||
define('app', [
|
||||
'babel-polyfill', 'sources/pgadmin', 'bundled_browser', 'pgadmin.datagrid'
|
||||
], function() {
|
||||
'babel-polyfill', 'sources/pgadmin', 'bundled_browser', 'pgadmin.datagrid',
|
||||
], function(babelPolyFill, pgAdmin) {
|
||||
var initializeModules = function(Object) {
|
||||
for (var key in Object) {
|
||||
var module = Object[key];
|
||||
@ -11,7 +11,7 @@ define('app', [
|
||||
module.Init();
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// Initialize modules registered to pgAdmin, pgAdmin.Browser and Tools object.
|
||||
initializeModules(pgAdmin);
|
||||
|
@ -1,5 +1,5 @@
|
||||
define('bundled_browser',[
|
||||
'pgadmin.browser'
|
||||
'pgadmin.browser',
|
||||
], function(pgBrowser) {
|
||||
pgBrowser.init();
|
||||
});
|
||||
|
@ -13,7 +13,7 @@ import 'codemirror/addon/search/searchcursor';
|
||||
import 'codemirror/addon/search/jump-to-line';
|
||||
import 'codemirror/addon/edit/matchbrackets';
|
||||
import 'codemirror/addon/edit/closebrackets';
|
||||
import 'codemirror/addon/comment/comment'
|
||||
import 'codemirror/addon/comment/comment';
|
||||
import '../js/codemirror/addon/fold/pgadmin-sqlfoldcode';
|
||||
|
||||
export default CodeMirror;
|
@ -136,8 +136,8 @@ define(['jquery', 'sources/gettext'],
|
||||
// We come here means we did not receive expected response
|
||||
// from server, we need to error out
|
||||
sqlEditorUtils.previousStatus = -99;
|
||||
msg = gettext("An unexpected error occurred - " +
|
||||
"ensure you are logged into the application.");
|
||||
msg = gettext('An unexpected error occurred - ' +
|
||||
'ensure you are logged into the application.');
|
||||
$el.attr('data-content', msg);
|
||||
if(!$status_el.hasClass('fa-query-tool-disconnected')) {
|
||||
$el.popover('hide');
|
||||
@ -148,10 +148,10 @@ define(['jquery', 'sources/gettext'],
|
||||
},
|
||||
error: function (e) {
|
||||
sqlEditorUtils.previousStatus = -1;
|
||||
var msg = gettext("Transaction status check failed.");
|
||||
var msg = gettext('Transaction status check failed.');
|
||||
if (e.readyState == 0) {
|
||||
msg = gettext("Not connected to the server or the connection to " +
|
||||
"the server has been closed.");
|
||||
msg = gettext('Not connected to the server or the connection to ' +
|
||||
'the server has been closed.');
|
||||
} else if (e.responseJSON && e.responseJSON.errormsg) {
|
||||
msg = e.responseJSON.errormsg;
|
||||
}
|
||||
@ -164,14 +164,14 @@ define(['jquery', 'sources/gettext'],
|
||||
$status_el.removeClass()
|
||||
.addClass('fa-custom fa-query-tool-disconnected');
|
||||
}
|
||||
}
|
||||
},
|
||||
});
|
||||
},
|
||||
|
||||
// This function will update the connection status
|
||||
updateConnectionStatus: function(url, poll_time) {
|
||||
var $el = $(".connection_status"),
|
||||
$status_el = $($($el).find(".fa-custom"));
|
||||
var $el = $('.connection_status'),
|
||||
$status_el = $($($el).find('.fa-custom'));
|
||||
|
||||
// Apply popover on element
|
||||
$el.popover();
|
||||
@ -188,7 +188,7 @@ define(['jquery', 'sources/gettext'],
|
||||
|
||||
// Updates the flag for connection status poll
|
||||
updateConnectionStatusFlag: function(status) {
|
||||
var $el = $(".connection_status");
|
||||
var $el = $('.connection_status');
|
||||
if ($el.data('panel-visible') != status) {
|
||||
$el.data('panel-visible', status);
|
||||
}
|
||||
|
@ -298,7 +298,7 @@ define('tools.querytool', [
|
||||
transId = self.handler.transId;
|
||||
// If transaction id is already set
|
||||
if($container.data('trans-id') != transId) {
|
||||
$container.data('trans-id', transId)
|
||||
$container.data('trans-id', transId);
|
||||
}
|
||||
|
||||
if (!$container.hasClass('wcPanelTabContentHidden')) {
|
||||
|
Loading…
Reference in New Issue
Block a user