Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
$(function(){
    
    $('#loadingDiv').click(function(){ $(this).hide()});
	
	//method1
    $('a, button').not("a.dropdown, button.buttonFontSize").click(function(){
        $('#loadingDiv').fadeIn();
    });
    $("form").on("submit", function(){
        $('#loadingDiv').fadeIn();
    });
});

//method2
//$(window).on('beforeunload', function() {
//    $('#loadingDiv').fadeIn	();
//});

Place this code in Userview Builder > Settings > Sub Header

...