From 66fed448dc3c7cfd264a4d98c935ca7c3da3c238 Mon Sep 17 00:00:00 2001
From: Renaud Le Gac <legac@cppm.in2p3.fr>
Date: Fri, 26 Sep 2014 15:48:28 +0200
Subject: [PATCH] Mask the whole viewport during the loading of the
 PanelwithUrlSelector.

---
 static/plugin_dbui/CHANGELOG                    | 3 ++-
 static/plugin_dbui/src/panel/WithUrlSelector.js | 4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/static/plugin_dbui/CHANGELOG b/static/plugin_dbui/CHANGELOG
index 1d12c079..f16f450c 100644
--- a/static/plugin_dbui/CHANGELOG
+++ b/static/plugin_dbui/CHANGELOG
@@ -1,7 +1,8 @@
 --------------------------------- CHANGE LOG ----------------------------------
 
 HEAD
-   - Add the plugin App.grid.plugin.Export
+   - Add the plugin App.grid.plugin.Export.
+   - Mask the whole viewport during loading a PanelWithUrlSelector.
 
 0.6.1.7 (Sep 2014)
    - Use inline script and Ext.grid.Panel to display software versions
diff --git a/static/plugin_dbui/src/panel/WithUrlSelector.js b/static/plugin_dbui/src/panel/WithUrlSelector.js
index 9f43045f..b3d61d4c 100644
--- a/static/plugin_dbui/src/panel/WithUrlSelector.js
+++ b/static/plugin_dbui/src/panel/WithUrlSelector.js
@@ -199,12 +199,12 @@ Ext.define('App.panel.WithUrlSelector', {
 
         // load the HTML content in the main panel
         // use the main panel loader
-        // mask the whole widget including the selector
+        // mask the whole viewport
         if (!request.ext || request.ext.indexOf('htm') !== -1) {
 
             mask = {
                 msg: this.textLoad,
-                target: this
+                target: this.up('xviewport')
             };
 
             this.mainPanel.getLoader().load({
-- 
GitLab