1/* 2 * Content Loaded handlers 3 * * generic - Always triggered, regardless of the context 4 * 5 * Interface: 6 * * page - Triggered when any interface page is loaded (including popups) 7 * * navigation_page - Triggered when a normal interface page is loaded (not a pop up) 8 * * page_contents - Triggered when any contents in any interface page are updated 9 * 10 * Build: 11 * * build - Triggered when a build page is loaded or content updated 12 * 13 */ 14 15window.TAGS = {}; 16 17 function init_js(){ 18 if (typeof(console.dev_log) == 'undefined'){ 19 console.dev_log = function () { 20 console.log.apply(console, arguments); 21 }; 22 } 23 24 $('iframe').ready(function () { 25 window.IFRAME_LOADED = true; 26 }); 27 28 $(document).on('content_loaded.generic', function(e) { 29 new mats.system_eventhandler_contentloaded_generic($(e.target)); 30 }); 31 $(document).on('content_loaded.page', function(e) { 32 new mats.system_eventhandler_contentloaded_page($(e.target)); 33 }); 34 $(document).on('content_loaded.navigation_page', function(e) { 35 new mats.system_eventhandler_contentloaded_navigation_page($(e.target)); 36 }); 37 $(document).on('content_loaded.page_contents', function(e) { 38 new mats.system_eventhandler_contentloaded_page_contents($(e.target)); 39 }); 40 $(document).on('content_loaded.build', function(e) { 41 new mats.build_eventhandler_contentloaded_generic($(e.target)); 42 }); 43 44 (function($) { 45 new mats.system_plugin_jquery(); 46 })(jQuery); 47 48 $(function(){ 49 new mats.system_loader(); 50 51 var system_layout = new mats.system_layout(); 52 system_layout.init(); 53 54 new mats.system_eventhandler_docready(); 55 if (PAGE_ENVIRONMENT && (PAGE_ENVIRONMENT == 'build')){ 56 new mats.system_tagging(); 57 new mats.build_eventhandler_docready(); 58 } 59 }); 60 61 function FC_ExportReady(chart_id){ 62 mats.system_misc(chart_id); 63 } 64 65 mats.system_validation.register_default_handlers(); 66 mats.system_misc.datepicker_set_defaults(); 67 mats.system_notification.setup(); 68} 69 70if(!IS_MOBILE_APP){ 71 init_js(); 72} 73 74/* git test */
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.