Quickie: Animated loader/spinner during detail view-load

This sub-forum is for discussing all topics related to AppGini Helper JavaScript Library, provided by bizzworxx as a third-party AppGini plugin.
User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1817
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: Quickie: Animated loader/spinner during detail view-load

Post by jsetzer » 2020-08-11 18:15

You can put it in hooks/header-extras.php. Because this is javascript in php, don't forget to wrap the javascript code in <script>...</script> tags:

Code: Select all

<!-- file: hooks/header-extras.php -->
<script>
jQuery(window).bind('beforeunload', function() {
  $j(".detail_view").hide();
  $j(".page-header").removeClass("loaded");
});
</script>
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

Post Reply