From 2790113199d8553fdf9f8251cf9829c5cd5b10c5 Mon Sep 17 00:00:00 2001 From: rugk Date: Wed, 16 Oct 2024 22:56:35 +0000 Subject: [PATCH] Revert "Move jquery initialisation/startup logic at the end/down" This reverts commit eabf763c41d08df92f0b0e9a090fe2bdbae561f6. It is not needed anymore, apparently. --- js/privatebin.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/js/privatebin.js b/js/privatebin.js index 24afd18e..9c843628 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -34,6 +34,13 @@ jQuery.fn.draghover = function() { }); }; +// main application start, called when DOM is fully loaded +jQuery(document).ready(function() { + 'use strict'; + // run main controller + $.PrivateBin.Controller.init(); +}); + jQuery.PrivateBin = (function($, RawDeflate) { 'use strict'; @@ -3761,7 +3768,7 @@ jQuery.PrivateBin = (function($, RawDeflate) { /** * Clear the password input in the top navigation - * + * * @name TopNav.clearPasswordInput * @function */ @@ -5664,10 +5671,3 @@ jQuery.PrivateBin = (function($, RawDeflate) { Controller: Controller }; })(jQuery, RawDeflate); - -// main application start, called when DOM is fully loaded -jQuery(document).ready(function() { - 'use strict'; - // run main controller - $.PrivateBin.Controller.init(); -});