1// Inicializacia kontroliek. 2jQuery(document).ready(function () { 3 // Datepicker 4 $(":input[ui-datepicker]").datepicker(); 5 6 // StromÄek 7 $("#tree").dynatree( 8 { 9 fx: { height: "toggle", duration: 200 }, 10 autoCollapse: false, 11 imagePath: "../Img/tree/", 12 autoFocus: false, 13 14 strings: { 15 loading: "NaÄÃtavamâ¦", 16 loadError: "Chyba pri naÄÃtavanÃ!" 17 }, 18 19 initAjax: 20 { 21 url: "GetTopLevelNodesAsJson", 22 data: { url: document.URL.toString() } 23 }, 24 25 onPostInit: function () { 26 //ResizeSplitter(); 27 }, 28 29 onActivate: function (node) { 30 $("#echoActive").text("" + node + " (" + node.getKeyPath() + ")"); 31 32 if (node.data.key) { 33 ShowGlobalOnSubmitOverlay(); 34 $("#content").empty().load('Grid?' + node.data.key + '&pageIndex=0', function () { 35 HideGlobalOnSubmitOverlay(); 36 }); 37 } 38 }, 39 40 onLazyRead: function (node) { 41 node.appendAjax( 42 { 43 url: "GetChildrenAsJson", 44 data: { key: node.data.key } 45 }); 46 } 47 48 }); 49 50 // Inicializácia scrollbaru. 51 // Musi to byt na window.load event kvoli obrazkom. 52 $(window).load(function () { mCustomScrollbars(); }); 53 54 // Inicializácia splittera. 55 if ($("#container_splitter").length != 0) { 56 $("#container_splitter").layout({ 57 west__minSize: 450, north__closable: true, north__resizable: false, useStateCookie: true, closable: true, slidable: false 58 }); 59 } 60}); 61 62 63// Funkcia pre pager v gride - pre browser 64function navigateToPageInBrowser(index) 65{ 66 ShowGlobalOnSubmitOverlay(); 67 var node = $("#tree").dynatree("getActiveNode"); 68 $("#content").empty().load('Grid?' + node.data.key + '&pageIndex=' + index, function () { 69 HideGlobalOnSubmitOverlay(); 70 }); 71} 72 73// Funkcia pre pager v gride - search 74function navigateToPageInSearch(parameters, index) 75{ 76 ShowGlobalOnSubmitOverlay(); 77 var url = 'Grid?' + parameters + '&pageIndex=' + index; 78 $("#search_result").empty().load(url, function () { 79 HideGlobalOnSubmitOverlay(); 80 }); 81} 82 83 84// Funkcia pre search - obnovenie dropdowns po postbacku 85function refreshCascadingDropdownsForLegislatureAfterPostBack() 86{ 87 $("#LegislatureId").change(); 88} 89 90 91// Funkcia pre inicializáciu scrollbaru pre poliÄku s knihami. 92function mCustomScrollbars() { 93 if ($("#bookshelf").length != 0) { 94 $("#bookshelf").mCustomScrollbar("horizontal", 500, "easeOutCirc", 1, "fixed", "yes", "yes", 20); 95 } 96} 97 98 99// Zobrazenie správy o komunikácii so serverom. 100function ShowGlobalOnSubmitOverlay() 101{ 102 $("#waitBox").show(); 103} 104 105// Schovanie správy o komunikácii so serverom. 106function HideGlobalOnSubmitOverlay() 107{ 108 $("#waitBox").hide(); 109}
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.