File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -936,18 +936,3 @@ window.AJAX = {
936936 } ;
937937 }
938938} ;
939-
940- window . AJAX . registerOnload ( 'functions.js' , function ( ) {
941- window . AJAX . removeSubmitEvents ( ) ;
942- } ) ;
943-
944- $ ( window . AJAX . loadEventHandler ( ) ) ;
945-
946- /**
947- * Attach a generic event handler to clicks
948- * on pages and submissions of forms
949- */
950- $ ( document ) . on ( 'click' , 'a' , window . AJAX . requestHandler ) ;
951- $ ( document ) . on ( 'submit' , 'form' , window . AJAX . requestHandler ) ;
952-
953- $ ( document ) . on ( 'ajaxError' , window . AJAX . getFatalErrorHandler ( ) ) ;
Original file line number Diff line number Diff line change @@ -824,6 +824,3 @@ window.Config = {
824824 } ;
825825 }
826826} ;
827-
828- window . AJAX . registerTeardown ( 'config.js' , window . Config . off ( ) ) ;
829- window . AJAX . registerOnload ( 'config.js' , window . Config . on ( ) ) ;
Original file line number Diff line number Diff line change 22 * Conditionally included if framing is not allowed.
33 * @return {void }
44 */
5- const crossFramingProtection = ( ) => {
5+ window . crossFramingProtection = ( ) => {
66 if ( window . allowThirdPartyFraming ) {
77 return ;
88 }
@@ -20,5 +20,3 @@ const crossFramingProtection = () => {
2020
2121 styleElement . parentNode . removeChild ( styleElement ) ;
2222} ;
23-
24- crossFramingProtection ( ) ;
Original file line number Diff line number Diff line change @@ -151,6 +151,3 @@ const KeyHandlerEvents = {
151151} ;
152152
153153window . KeyHandlerEvents = KeyHandlerEvents ;
154-
155- window . AJAX . registerTeardown ( 'keyhandler.js' , window . KeyHandlerEvents . off ( ) ) ;
156- window . AJAX . registerOnload ( 'keyhandler.js' , window . KeyHandlerEvents . on ( ) ) ;
Original file line number Diff line number Diff line change 1+ window . AJAX . registerOnload ( 'functions.js' , ( ) => window . AJAX . removeSubmitEvents ( ) ) ;
2+ $ ( window . AJAX . loadEventHandler ( ) ) ;
3+
4+ /**
5+ * Attach a generic event handler to clicks on pages and submissions of forms.
6+ */
7+ $ ( document ) . on ( 'click' , 'a' , window . AJAX . requestHandler ) ;
8+ $ ( document ) . on ( 'submit' , 'form' , window . AJAX . requestHandler ) ;
9+
10+ $ ( document ) . on ( 'ajaxError' , window . AJAX . getFatalErrorHandler ( ) ) ;
11+
12+ window . AJAX . registerTeardown ( 'keyhandler.js' , window . KeyHandlerEvents . off ( ) ) ;
13+ window . AJAX . registerOnload ( 'keyhandler.js' , window . KeyHandlerEvents . on ( ) ) ;
14+
15+ window . crossFramingProtection ( ) ;
16+
17+ window . AJAX . registerTeardown ( 'config.js' , window . Config . off ( ) ) ;
18+ window . AJAX . registerOnload ( 'config.js' , window . Config . on ( ) ) ;
Original file line number Diff line number Diff line change @@ -143,6 +143,7 @@ private function addDefaultScripts(): void
143143 $ this ->scripts ->addFile ('cross_framing_protection.js ' );
144144 $ this ->scripts ->addFile ('messages.php ' , ['l ' => $ GLOBALS ['lang ' ]]);
145145 $ this ->scripts ->addFile ('config.js ' );
146+ $ this ->scripts ->addFile ('main.js ' );
146147 $ this ->scripts ->addFile ('doclinks.js ' );
147148 $ this ->scripts ->addFile ('functions.js ' );
148149 $ this ->scripts ->addFile ('navigation.js ' );
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ module.exports = [
4949 'jqplot/plugins/jqplot.byteFormatter' : './js/src/jqplot/plugins/jqplot.byteFormatter.js' ,
5050 'jquery.sortable-table' : './js/src/jquery.sortable-table.js' ,
5151 'keyhandler' : './js/src/keyhandler.js' ,
52+ 'main' : './js/src/main.js' ,
5253 'makegrid' : './js/src/makegrid.js' ,
5354 'menu_resizer' : './js/src/menu_resizer.js' ,
5455 'multi_column_sort' : './js/src/multi_column_sort.js' ,
You can’t perform that action at this time.
0 commit comments