');$.post("./Utility/ModalData", { '__data' : role }).done(function(modal) {var modal = $.parseJSON(modal);if( modal.type == 'page' ) {$.post('./' + modal.url, { ismodal : 'true', modaldata : modal.data }).done(function(response) { SetModal(modal, response); });}});}}function SetModal(modal, response) {$('#thePortalModalTitle').html(modal.title);$('#thePortalModalContainer').animate({ 'width' : modal.width, 'height' : modal.height }, 250);$('#thePortalModalContent').html(response);}function NavToPreLoader(e) {if($(e.target).is('button') && $(e.target).attr('preloader') != 'false') {var btn_id = 'button_' + Date.now();$(e.target).attr('id', btn_id);doRequest(btn_id);}}$(document).on('click', '[uinav="home"]', function(e) {NavToPreLoader(e);NavTo('home');});$(document).on('click', '[uinav="true"]', function(e) {if($(this).attr('target') == '_blank') {window.open($(this).attr('url'), '_blank').focus();e.preventDefault();}else {NavToPreLoader(e);NavTo($(this).attr('target'));}});$(document).on('click', '[uirefresh="true"]', function(e) {NavToPreLoader(e);NavTo('reload');});$(document).on('click', '[uimodal="true"]', function(e) {PortalModal($(this).attr('uirole'));});$(document).on('click', '[uimessage="true"]', function(e) {PortalMessage($(this).attr('uitype') + '|' + $(this).attr('uititle') + '|' + $(this).attr('uicontent'));});$(document).on('click', '[uiconfirm="true"]', function(e) {PortalMessage($(this).attr('uititle')+'|'+$(this).attr('uicontent')+'|'+$(this).attr('uinext'), true);});$(document).on('click', '[uicopy="true"]', function(e) {PortalTick($(this).attr('uimessage'));var $temp = $("