1var g_ptsEdit = false 2, g_ptsBlockFabric = null 3, g_ptsHoverAnim = 300 // Table hover animation lenght, ms - hardcoded for now 4, g_ptsHoverMargin = 20; // Table hover margin displace, px - hardcoded for now 5 6//array with unique_id template that without enabled options header row 7//overlap toggle elements 8var g_ptsUniqueIdArray = ['wnOq3v2K', 'sa0DHT4h', 'B1gpCofW', 'ptmJ4YnA', 'r0OL4vCy']; 9 10jQuery(document).ready(function(){ 11 _ptsInitFabric(); 12 if(typeof(ptsTables) !== 'undefined' && ptsTables && ptsTables.length) { 13 for(var i = 0; i < ptsTables.length; i++) { 14 g_ptsBlockFabric.addFromHtml(ptsTables[ i ], jQuery('#'+ ptsTables[ i ].view_id)); 15 16 jQuery('body').trigger('set_default_position'); 17 //for fix horizontal element size bugs frontend.pro.tables.js 18 if(ptsTables[i].unique_id === "7m6k5X0i"){ 19 jQuery('#'+ ptsTables[ i ].view_id).attr('data-unique_id', ptsTables[i].unique_id); 20 } 21 22 // fix overlap toggle elements 23 if(g_ptsUniqueIdArray.indexOf(ptsTables[i].unique_id) != -1){ 24 jQuery('#'+ ptsTables[ i ].view_id).attr('data-unique_id', ptsTables[i].unique_id); 25 //if undefined that means options is enabled by default. 26 27 var enableHeader = '1'; 28 if (typeof ptsTables[i].params.enb_head_row !== 'undefined') { 29 enableHeader = typeof (ptsTables[i].params.enb_head_row.val) !== "undefined" ? '0' : '1'; 30 } 31 jQuery(document.body).trigger( "overlay_toggle", [ ptsTables[i].unique_id , enableHeader] ); 32 } 33 //jQuery(".ptsTableFrontedShell .tooltipstered").removeAttr("title"); 34 } 35 jQuery(window).bind('load', function() { 36 if(typeof(g_ptsAllowAddUndo) !== 'undefined') { 37 setTimeout(function() { 38 g_ptsAllowAddUndo = true; 39 _ptsAddUndoBuffer(); 40 }, 200); 41 } 42 }); 43 } 44}); 45jQuery(window).on("load", function() { 46 setTimeout(function() { jQuery('body').trigger('resize'); }, 500); 47}); 48//in case images are loading dynamically 49jQuery('.ptsEl.ptsCol[data-el="table_col"] img').on('load', function() { 50 jQuery('body').trigger('resize'); 51}); 52function _ptsInitFabric() { 53 g_ptsBlockFabric = new ptsBlockFabric(); 54} 55function ptsGetFabric() { 56 return g_ptsBlockFabric; 57} 58function _ptsIsEditMode() { 59 return (typeof(g_ptsEditMode) !== 'undefined' && g_ptsEditMode); 60}
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.