oxid_patches/10310_adminLoadingIndicator_6.1.patch

56 regels
6.6 KiB
Diff

<EFBFBD><EFBFBD>From 1150f7ba56b9a4b8f725745750f9da5b95099868 Mon Sep 17 00:00:00 2001
From: Daniel Seifert <ds@shopmodule.com>
Date: Tue, 11 Jan 2022 14:28:10 +0100
Subject: [PATCH 1/1] add reload in progress marker on admin edit windows
# Conflicts:
# source/out/admin/src/oxid.js
---
source/out/admin/src/oxid.js | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/source/out/admin/src/oxid.js b/source/out/admin/src/oxid.js
index 508fe8acd..0ec733fef 100644
--- a/source/out/admin/src/oxid.js
+++ b/source/out/admin/src/oxid.js
@@ -37,6 +37,8 @@ var oxid = {
editThis : function( sID )
{
+ top.oxid.admin.d3ShowProgressElement();
+
var oTransfer = top.basefrm.edit.document.getElementById( "transfer" );
oTransfer.oxid.value = sID;
oTransfer.cl.value = top.oxid.admin.getClass( sID );
@@ -99,6 +101,8 @@ var oxid = {
changeEditBar : function( sLocation, sPos, sFunction)
{
+ top.oxid.admin.d3ShowProgressElement();
+
var oSearch = top.basefrm.list.document.getElementById( "search" );
oSearch.actedit.value = sPos;
oSearch.submit();
@@ -201,5 +205,17 @@ var oxid = {
// appending..
oForm.appendChild( oFormField );
}
+
+ d3ShowProgressElement : function () {
+ var targetDocument = top.basefrm.edit.document;
+ var marker = targetDocument.createElement("div");
+ marker.style.cssText = "position: absolute; top: -30px; left: -30px; width: 0; height: 0; background-color: transparent; border: 30px solid transparent; border-top-color: red; transform:rotate(135deg)";
+ var hourglass = targetDocument.createElement("div");
+ hourglass.style.cssText = "position: absolute; top: -26px; left: -6px; width: 16px; height: 16px; transform:rotate(45deg); background-size: 16px; background-repeat: no-repeat";
+ hourglass.style.backgroundImage = 'url("data:image/svg+xml;base64,PHN2ZyBpZD0iU3ZnanNTdmcxMDA2IiB3aWR0aD0iMjg4IiBoZWlnaHQ9IjI4OCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnL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