$(document).on('click','#HeaderMenuOuter a', function(e){ var data = { 'application': 'MasterLayout', 'action': 'sitemap-click', 'elementId': null, 'details': '{ "type": "SiteMap", "url": "' + $(this).attr('href') +'" }', 'occurred': new Date().toISOString() }; $.ajax({ url: '/Rainmaker.Integration.Facade/ActionLogger/Log', type: 'POST', dataType: 'json', contentType: 'application/json', data: JSON.stringify(data) }); }); $(document).ready(function () { setMultiSelectDropDown('PayCategories', 'PayCategoriesDropDownCheckBoxList', null, function (c, s) { $('#Add').removeAttr('disabled'); var o = s.options; if (c[0].checked) return; for (i = 0; i < o.length; i++) if (o[i].selected) return $('#Add').attr('disabled', 'disabled'); }); }); $(document).on('click','#ReportBody img[title=Expand], #ReportBody img[title=Collapse], #showHideAllBtn', function(e){ var data = { 'application': 'Rainmaker.CrewPay.Web', 'action': 'crewpay-expandable-click', 'elementId': $(this).attr('id'), 'details': '{ "type": "ReportDaysTablePayCategoryRowExpandableClick", "currentUrl": "' + window.location.href +'" }', 'occurred': new Date().toISOString() }; $.ajax({ url: '/Rainmaker.Integration.Facade/ActionLogger/Log', type: 'POST', dataType: 'json', contentType: 'application/json', data: JSON.stringify(data) }); }); $(document).on('click','#ReportBody span[onclick*=showHideRow]', function(e){ var data = { 'application': 'Rainmaker.CrewPay.Web', 'action': 'crewpay-details-col-expand-hide', 'elementId': null, 'details': '{ "type": "ReportDaysTableDetailsColClick", "currentUrl": "' + window.location.href + '", "text": "'+ $(this).text() + '" }', 'occurred': new Date().toISOString() }; $.ajax({ url: '/Rainmaker.Integration.Facade/ActionLogger/Log', type: 'POST', dataType: 'json', contentType: 'application/json', data: JSON.stringify(data) }); }); $(document).ready(function () { setMultiSelectDropDown('RosterPeriodIds', 'RosterPeriodIdsDropDownCheckBoxList', null, null); }); $(document).ready(function () { setMultiSelectDropDown('CrewPayReportStatusIds', 'CrewPayReportStatusIdsDropDownCheckBoxList', null, null); }); $(document).ready(function () { setMultiSelectDropDown('CrewMemberBase', 'CrewMemberBaseDropDownCheckBoxList', null, null); }); $(document).ready(function () { setMultiSelectDropDown('QualificationCategoryCodes', 'QualificationCategoryCodesDropDownCheckBoxList', null, null); }); $(document).ready(function () { setMultiSelectDropDown('BidLineTypeIds', 'BidLineTypeIdsDropDownCheckBoxList', null, null); }); $(document).ready(function () { setMultiSelectDropDown('PayCategorySystemNames', 'PayCategorySystemNamesDropDownCheckBoxList', null, null); }); $(document).ready(function () { setMultiSelectDropDown('OperatedEquipmentTypeArray', 'OperatedEquipmentTypeArrayDropDownCheckBoxList', null, null); }); $(document).ready(function () { setMultiSelectDropDown('Exceptions', 'ExceptionsDropDownCheckBoxList', null, null); }); $(document).ready(function () { setMultiSelectDropDown('SpecialFunctionTypes', 'SpecialFunctionTypesDropDownCheckBoxList', null, null); });