You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
easyappointments-archive/assets/js/backend.min.js

1 line
1.4 KiB

window.Backend=window.Backend||{},function(t){"use strict";$(function(){$(window).on("resize",function(){Backend.placeFooterToBottom()}).trigger("resize"),$(document).ajaxStart(function(){$("#loading").show()}),$(document).ajaxStop(function(){$("#loading").hide()}),tippy("[data-tippy-content]"),GeneralFunctions.enableLanguageSelection($("#select-language"))}),t.DB_SLUG_ADMIN="admin",t.DB_SLUG_PROVIDER="provider",t.DB_SLUG_SECRETARY="secretary",t.DB_SLUG_CUSTOMER="customer",t.PRIV_VIEW=1,t.PRIV_ADD=2,t.PRIV_EDIT=4,t.PRIV_DELETE=8,t.PRIV_APPOINTMENTS="appointments",t.PRIV_CUSTOMERS="customers",t.PRIV_SERVICES="services",t.PRIV_USERS="users",t.PRIV_SYSTEM_SETTINGS="system_settings",t.PRIV_USER_SETTINGS="user_settings",t.placeFooterToBottom=function(){var t=$("#footer");window.innerHeight>$("body").height()?t.css({position:"absolute",width:"100%",bottom:"0px"}):t.css({position:"static"})},t.displayNotification=function(t,o){t=t||"- No message provided for this notification -";var n=$("#notification");o||(o=[],setTimeout(function(){n.fadeOut()},5e3)),n.empty();var e=$("<div/>",{class:"notification alert",html:[$("<button/>",{type:"button",class:"close","data-dismiss":"alert",html:[$("<span/>",{html:"&times;"})]}),$("<strong/>",{html:t})]}).appendTo(n);o.forEach(function(t){$("<button/>",{class:"btn btn-outline-secondary btn-xs",text:t.label,on:{click:t.function}}).appendTo(e)}),n.show("fade")}}(window.Backend);