openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 961b2a6c895d09626fd01398cbb51dbeb9f42d4b
parent 2b6e56c5e70b8ced063ff87d64ca51579b30cfbe
Author: dankert <openrat@jandankert.de>
Date:   Tue, 30 Nov 2021 20:20:14 +0100

Using the new spinner while loading data in the navigation.

Diffstat:
Mmodules/cms/ui/themes/default/script/plugin/jquery-plugin-orTree.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/cms/ui/themes/default/script/plugin/jquery-plugin-orTree.js b/modules/cms/ui/themes/default/script/plugin/jquery-plugin-orTree.js @@ -39,7 +39,7 @@ export default function(options) } else { // Pfad ist geschlossen -> öffnen. - $(treeEl).closest('div.or-view').addClass('loader'); + Workbench.getInstance().startSpinner(); let $link = $node.find('a'); //let type = $link.data('extra-type'); let id = $link.data('id'); @@ -93,7 +93,7 @@ export default function(options) notice.msg = cause; }).finally( () => { // Die Loader-Animation entfernen. - $(treeEl).closest('div.or-view').removeClass('loader'); + Workbench.getInstance().stopSpinner(); }); // Am Knoten die Klasse wechseln.