-
-
+
+
+
+
diff --git a/web/pgadmin/tools/datagrid/templates/datagrid/js/datagrid.js b/web/pgadmin/tools/datagrid/templates/datagrid/js/datagrid.js
index f0ffb444e..1cb9c1e12 100644
--- a/web/pgadmin/tools/datagrid/templates/datagrid/js/datagrid.js
+++ b/web/pgadmin/tools/datagrid/templates/datagrid/js/datagrid.js
@@ -18,6 +18,12 @@ define(
this.initialized = true;
this.title_index = 1;
+ this.spinner_el = '
'+
+ ''+
+ '
';
// Define list of nodes on which view data option appears
var supported_nodes = [
'table', 'view', 'mview',
@@ -326,17 +332,19 @@ define(
baseUrl = "{{ url_for('datagrid.index') }}" + "panel/" + res.data.gridTransId + "/false/"
+ encodeURIComponent(grid_title);
var openDataGridURL = function(j) {
- setTimeout(function() {
- var frameInitialized = j.data('frameInitialized');
- if (frameInitialized) {
- var frame = j.data('embeddedFrame');
- if (frame) {
- frame.openURL(baseUrl);
- }
- } else {
- openDataGridURL(j);
- }
- }, 100);
+ j.data('embeddedFrame').$container.append(self.spinner_el);
+ setTimeout(function() {
+ var frameInitialized = j.data('frameInitialized');
+ if (frameInitialized) {
+ var frame = j.data('embeddedFrame');
+ if (frame) {
+ frame.openURL(baseUrl);
+ frame.$container.find('.wcLoadingContainer').hide(1);
+ }
+ } else {
+ openDataGridURL(j);
+ }
+ }, 100);
};
openDataGridURL($(dataGridPanel));
},
@@ -422,17 +430,19 @@ define(
baseUrl = "{{ url_for('datagrid.index') }}" + "panel/" + res.data.gridTransId + "/true/"
+ encodeURIComponent(grid_title) + '?' + "query_url=" + encodeURI(sURL);
var openQueryToolURL = function(j) {
- setTimeout(function() {
- var frameInitialized = j.data('frameInitialized');
- if (frameInitialized) {
- var frame = j.data('embeddedFrame');
- if (frame) {
- frame.openURL(baseUrl);
- }
- } else {
- openQueryToolURL(j);
- }
- }, 100);
+ j.data('embeddedFrame').$container.append(pgAdmin.DataGrid.spinner_el);
+ setTimeout(function() {
+ var frameInitialized = j.data('frameInitialized');
+ if (frameInitialized) {
+ var frame = j.data('embeddedFrame');
+ if (frame) {
+ frame.openURL(baseUrl);
+ frame.$container.find('.wcLoadingContainer').delay(1000).hide(1);
+ }
+ } else {
+ openQueryToolURL(j);
+ }
+ }, 100);
};
openQueryToolURL($(queryToolPanel));
},
diff --git a/web/pgadmin/tools/debugger/static/css/debugger.css b/web/pgadmin/tools/debugger/static/css/debugger.css
index 40eb195bc..438677533 100644
--- a/web/pgadmin/tools/debugger/static/css/debugger.css
+++ b/web/pgadmin/tools/debugger/static/css/debugger.css
@@ -1,6 +1,6 @@
#container {
position: absolute;
- top: 44px;
+ top: 40px;
bottom: 0px;
left: 0px;
right: 0px;
@@ -31,28 +31,12 @@
top: 0; bottom: 0; right: 0; left: 0;
}
-.wcLoadingIcon {
- position: absolute;
- font-size: 100px;
- left: calc(50% - 100px);
- top: calc(50% - 100px);
- height: 95px;
-}
-
-.wcLoadingLabel {
- position: absolute;
- width: 103%;
- font-size: 30px;
- top: calc(50% + 0px);
- text-align: center;
-}
-
.debugger-container .breakpoints {
- width: 0.9em;
+ width: 0.9em;
}
.debugger-container .CodeMirror-activeline-background {
- background: #50B0F0;
+ background: #50B0F0;
}
.CodeMirror-foldmarker {
@@ -64,7 +48,7 @@
}
.CodeMirror, .CodeMirror-gutters {
- min-height: 100%;
+ min-height: 100%;
}
.CodeMirror-foldgutter {
diff --git a/web/pgadmin/tools/sqleditor/static/css/sqleditor.css b/web/pgadmin/tools/sqleditor/static/css/sqleditor.css
index 1d0546503..3aa8090ea 100644
--- a/web/pgadmin/tools/sqleditor/static/css/sqleditor.css
+++ b/web/pgadmin/tools/sqleditor/static/css/sqleditor.css
@@ -4,11 +4,11 @@
}
.sql-editor {
- position: absolute;
- left: 0;
- right: 0;
- top : 0;
- bottom: 0;
+ position: absolute;
+ left: 0;
+ right: 0;
+ top : 0;
+ bottom: 0;
}
.sql-editor-busy-fetching {
@@ -20,23 +20,10 @@
margin:0;
padding: 0;
background: black;
- opacity: 0.4;
+ opacity: 0.6;
z-index: 100;
}
-.sql-editor-busy-icon {
- position:absolute;
- left: 45%;
- top: 40%;
-}
-
-.sql-editor-busy-text {
- position:absolute;
- left: 42%;
- top: 50%;
- font-size: 20px;
-}
-
#editor-panel {
position: absolute;
left: 0;
diff --git a/web/pgadmin/tools/sqleditor/templates/sqleditor/js/sqleditor.js b/web/pgadmin/tools/sqleditor/templates/sqleditor/js/sqleditor.js
index c2282a1b6..92579f123 100644
--- a/web/pgadmin/tools/sqleditor/templates/sqleditor/js/sqleditor.js
+++ b/web/pgadmin/tools/sqleditor/templates/sqleditor/js/sqleditor.js
@@ -1143,15 +1143,16 @@ define(
$("#btn-flash").prop('disabled', true);
+ self.trigger(
+ 'pgadmin-sqleditor:loading-icon:message',
+ '{{ _('Waiting for the query execution to complete...') }}'
+ );
+
$.ajax({
url: "{{ url_for('sqleditor.index') }}" + "view_data/start/" + self.transId,
method: 'GET',
success: function(res) {
if (res.data.status) {
- self.trigger(
- 'pgadmin-sqleditor:loading-icon:message',
- '{{ _('Waiting for the query execution to complete...') }}'
- );
self.can_edit = res.data.can_edit;
self.can_filter = res.data.can_filter;
'+
+ ''+
+ '
'+
+ '