function OnClientFileUploaded(n,t){var r=t.get_fileInfo(),i,u;r.ErrorMessage!=null&&(i=t.get_row(),n._updateRowImage(i,"fail"),n._updateCancelButton(i),u='
Character Length:<\/strong> "+t+"<\/span>"+(n!==0?" of "+n+"<\/span>":"")):$(".news-introduction .char_limit").html("");n!==undefined&&(n>0&&t>=n?$(".news-introduction .char_limit").addClass("text-danger"):$(".news-introduction .char_limit").removeClass("text-danger"),n>0&&t>n&&(r=$(i).val().substr(0,n),$(i).val(r)))}}$(document).ready(function(){$(".news-introduction .char_limit").length>0&&$(".news-introduction .char_limit").attr("data-charlimit")!==undefined&&$(".news-introduction label").html("Introduction: (Max Character Length: "+$(".news-introduction .char_limit").attr("data-charlimit")+")<\/span>")});$(".news-introduction textarea").keyup(function(){News_CalculateCharLimit()});
/*!
* accounting.js v0.4.2
* Copyright 2014 Open Exchange Rates
*
* Freely distributable under the MIT license.
* Portions of accounting.js are inspired or borrowed from underscore.js
*
* Full details and documentation:
* http://openexchangerates.github.io/accounting.js/
*/
(function(n,t){function o(n){return!!(n===""||n&&n.charCodeAt&&n.substr)}function u(n){return a?a(n):v.call(n)==="[object Array]"}function s(n){return n&&v.call(n)==="[object Object]"}function h(n,t){var i;n=n||{};t=t||{};for(i in t)t.hasOwnProperty(i)&&n[i]==null&&(n[i]=t[i]);return n}function r(n,t,i){var u=[],r,f;if(!n)return u;if(l&&n.map===l)return n.map(t,i);for(r=0,f=n.length;r Character Length:<\/strong> "+t+"<\/span>"+(n!==0?" of "+n+"<\/span>":"")):$(".notices-introduction .char_limit").html("");n!==undefined&&(n>0&&t>=n?$(".notices-introduction .char_limit").addClass("text-danger"):$(".notices-introduction .char_limit").removeClass("text-danger"),n>0&&t>n&&(r=$(i).val().substr(0,n),$(i).val(r)))}}$(document).ready(function(){$(".notices-introduction .char_limit").length>0&&$(".notices-introduction .char_limit").attr("data-charlimit")!==undefined&&$(".notices-introduction label").html("Introduction: (Max Character Length: "+$(".notices-introduction .char_limit").attr("data-charlimit")+")<\/span>")});$(".notices-introduction textarea").keyup(function(){PN_CalculateCharLimit()});
$(document).ready(function(){$(".meeting-types ul li").length>0&&$(".meeting-types ul li").matchHeight()});
$(document).ready(function () {
$('.thumbnail').imagefill();
//WCAG Fix
$("div.consultation-item-data").each(function (i, obj) {
var table = $(this).find("table.table");
if (table !== undefined) {
var title = $(this).find("div.page-header h2").text();
if (window.location.href.indexOf("past") > -1) {
$(table).attr("aria-label", 'Past ' + title + ' Consultations');
$(table).attr("title", 'Past Consultations - ' + title);
}
else {
$(table).attr("aria-label", title + ' Consultations');
$(table).attr("title", 'Consultations - ' + title);
}
}
});
});
function gridViewSort(){$(".gvTable").length>0&&$(".gvTable[data-client-sortable]").sortable({items:"tr:not(tr:first-child)",cursor:"pointer",axis:"y",dropOnEmpty:!1,placeholder:"sort-placeholder"})}function runOnPagePostback(){gridViewSort()}function matchHieghts(){$(".hr-contact-default").length>0&&$(window).width()>=1262&&($.fn.matchHeight._beforeUpdate=function(){},$(".hr-contact-default #hr-contact-list .hr-contact-item").matchHeight(),$.fn.matchHeight._afterUpdate=function(){$(".hr-contact-default .module-list .loading").fadeOut()})}$(".nav-tabs a").click(function(n){n.preventDefault();$(this).tab("show")});typeof $.fn.imagefill=="function";$(document).ready(function(){gridViewSort();matchHieghts()});Sys.WebForms.PageRequestManager.getInstance().add_endRequest(runOnPagePostback);$(".hr-contact-default .hr-contact-item").length&&($(".hr-contact-default .hr-contact-item .hr-item-header").matchHeight({remove:!0}),$(".hr-contact-default .hr-contact-item .hr-details-content").matchHeight({remove:!0}),$(".hr-contact-default .hr-contact-item .hr-item-department").matchHeight({remove:!0}),$(window).width()>1262&&($(".hr-contact-default .hr-contact-item .hr-item-header").matchHeight(),$(".hr-contact-default .hr-contact-item .hr-details-content").matchHeight(),$(".hr-contact-default .hr-contact-item .hr-item-department").matchHeight()));
function EndRequestHandler(){defaultPageLoad()}function defaultPageLoad(){$(".thumbnail").imagefill();$(".classified-link").imagefill()}$(window).on("load",function(){defaultPageLoad();Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler)});
$(function(){$(".datetimepicker").datetimepicker({format:"DD/MM/YYYY"});$('[data-toggle="tooltip"]').tooltip()});$(document).ready(function(){$(".module-content .info-link h3.g-mb-5").matchHeight();$(".module-content .info-link div.g-pa-25").matchHeight()});