easyappointments/assets/js/utils/calendar_event_popover.min.js

1 line
826 B
JavaScript
Executable File

"use strict";App.Utils.CalendarEventPopover=function(){return{renderPhoneIcon:function(phone){return phone?$("<div/>",{html:[$("<a/>",{href:"tel:"+phone,target:"_blank",html:[$("<span/>",{class:"fas fa-phone-alt"})]})]}).html():null},renderMapIcon:function(user){var data=[];return user.address&&data.push(user.address),user.city&&data.push(user.city),user.state&&data.push(user.state),user.zip_code&&data.push(user.zip_code),data.length?$("<div/>",{html:[$("<a/>",{href:"https://google.com/maps/place/"+data.join(","),target:"_blank",html:[$("<span/>",{class:"fas fa-map-marker-alt"})]})]}).html():null},renderMailIcon:function(email){return email?$("<div/>",{html:[$("<a/>",{href:"mailto:"+email,target:"_blank",html:[$("<span/>",{class:"fas fa-envelope"})]})]}).html():null},renderCustomContent:function(){return null}}}();