Queries={AddDownloadChartButtons:function(){$(document).on({mouseenter:function(){$(this).prepend("<span class='download-chart-js'><\/span>")},mouseleave:function(){$(this).find(".download-chart-js").fadeOut(500,function(){$(this).remove()})}},".k-chart");$(document).on("click",".download-chart-js",function(n){n.preventDefault();var t=$(this).closest(".k-chart").data("kendoChart"),i=escape(t.svg());$("#svgExportString").val(i);$("#exportChartForm")[0].submit()})},BindDownloadTableExportButton:function(){$(document).on("click",".export-table-xls-js",function(n){function e(n){return n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#39;").replace(/"/g,"&quot;")}var r=$(this).attr("table"),u=$(n.currentTarget),f,t,i;u.data("kendopager")||(f=u.data("title"),t=$(this).closest("#"+r+"ResultsTable").find("#"+r+"Table"),t.length==0&&(t=$("#"+r)),t[0]?i=t[0].outerHTML:(t=$(this).closest("#UnActiveObjectCommissioningByYearsAndMonthsBySourceTypeResultsTable"),i=t[0].children[1].children[0].outerHTML,i=i.substr(i.indexOf('<div class="k-widget k-grid k-grid-display-block"'),i.length)),$("#tableExportString").val(e(i)),$("#titleExportString").val(f),$("#tableExportForm")[0].submit())})},Bind:function(){Queries.AddDownloadChartButtons();Queries.BindDownloadTableExportButton()}};$(document).ready(function(){Queries.Bind()});
