You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2020/12/19 04:42:59 UTC

[ofbiz-framework] branch trunk updated: Improved: Change inline style to class for wait-spinner (OFBIZ-12095)

This is an automated email from the ASF dual-hosted git repository.

jamesyong pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/trunk by this push:
     new d380125  Improved: Change inline style to class for wait-spinner (OFBIZ-12095)
d380125 is described below

commit d3801256dfef10e9d5576a4e3c0f262591dda68e
Author: James Yong <ja...@apache.org>
AuthorDate: Sat Dec 19 12:42:28 2020 +0800

    Improved: Change inline style to class for wait-spinner (OFBIZ-12095)
    
    Inline style not encouraged by Content Security Policy
---
 themes/bluelight/template/Header.ftl                | 2 +-
 themes/common-theme/webapp/common/css/info.css      | 5 +++++
 themes/flatgrey/template/Header.ftl                 | 2 +-
 themes/rainbowstone/template/includes/HomeMenu.ftl  | 2 +-
 themes/rainbowstone/template/includes/TopAppBar.ftl | 2 +-
 themes/tomahawk/template/Header.ftl                 | 2 +-
 6 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/themes/bluelight/template/Header.ftl b/themes/bluelight/template/Header.ftl
index 6ff5e16..5c8d65e 100644
--- a/themes/bluelight/template/Header.ftl
+++ b/themes/bluelight/template/Header.ftl
@@ -122,7 +122,7 @@ under the License.
 
 <body>
   <#include "component://common-theme/template/ImpersonateBanner.ftl"/>
-  <div id="wait-spinner" style="display:none">
+  <div id="wait-spinner" class="hidden">
     <div id="wait-spinner-image"></div>
   </div>
   <div class="page-container">
diff --git a/themes/common-theme/webapp/common/css/info.css b/themes/common-theme/webapp/common/css/info.css
index 537e944..c7aa241 100644
--- a/themes/common-theme/webapp/common/css/info.css
+++ b/themes/common-theme/webapp/common/css/info.css
@@ -31,3 +31,8 @@ limitations under the License.
 .info-cursor-none {
     cursor: text;
 }
+
+/* used by wait-spinner */
+.hidden {
+    display: none;
+}
diff --git a/themes/flatgrey/template/Header.ftl b/themes/flatgrey/template/Header.ftl
index a24bbe3..4a8dcec 100644
--- a/themes/flatgrey/template/Header.ftl
+++ b/themes/flatgrey/template/Header.ftl
@@ -102,7 +102,7 @@ under the License.
 <#assign organizationLogoLinkURL = "${layoutSettings.organizationLogoLinkUrl!}">
 <body>
   <#include "component://common-theme/template/ImpersonateBanner.ftl"/>
-  <div id="wait-spinner" style="display:none">
+  <div id="wait-spinner" class="hidden">
     <div id="wait-spinner-image"></div>
   </div>
   <div class="page-container">
diff --git a/themes/rainbowstone/template/includes/HomeMenu.ftl b/themes/rainbowstone/template/includes/HomeMenu.ftl
index 7ed398b..7eab625 100644
--- a/themes/rainbowstone/template/includes/HomeMenu.ftl
+++ b/themes/rainbowstone/template/includes/HomeMenu.ftl
@@ -70,7 +70,7 @@ under the License.
         setUserLayoutPreferences('HOME_MENU_FAVORITES', 'displayFavorites', displayFavorite);
     }
 </script>
-<div id="wait-spinner" style="display:none">
+<div id="wait-spinner" class="hidden">
     <div id="wait-spinner-image"></div>
 </div>
 <div class="page-container">
diff --git a/themes/rainbowstone/template/includes/TopAppBar.ftl b/themes/rainbowstone/template/includes/TopAppBar.ftl
index 318c0fa..2906df2 100644
--- a/themes/rainbowstone/template/includes/TopAppBar.ftl
+++ b/themes/rainbowstone/template/includes/TopAppBar.ftl
@@ -31,7 +31,7 @@ under the License.
 </#if>
 <body>
 <#include "component://common-theme/template/ImpersonateBanner.ftl"/>
-<div id="wait-spinner" style="display:none">
+<div id="wait-spinner" class="hidden">
     <div id="wait-spinner-image"></div>
 </div>
 <div class="page-container">
diff --git a/themes/tomahawk/template/Header.ftl b/themes/tomahawk/template/Header.ftl
index ab07096..e735907 100644
--- a/themes/tomahawk/template/Header.ftl
+++ b/themes/tomahawk/template/Header.ftl
@@ -107,7 +107,7 @@ under the License.
 
 <body>
   <#include "component://common-theme/template/ImpersonateBanner.ftl"/>
-  <div id="wait-spinner" style="display:none">
+  <div id="wait-spinner" class="hidden">
     <div id="wait-spinner-image"></div>
   </div>
   <div class="page-container">