Editor - Notifications
View that manages business notifications, this view opens with the function showNotifications()
in the view theme/editor/business.html
Main Models
curEmailOrder
: Contains the notification emailcurBusTel
: contains the notification phonecurBusCel
: contains the notification cell phone numberdeal.use_printer
: Boolean that checks if the printer is useddeal.printer_id
: Identifier of the used printerprinters
: Contains all printers in an arraycurCollapse
: Useful to section the view
Utility Functions
hideNotifications()
: Closes this modalchangeCollapse(tab)
: Useful to section changes the value of the model curCollapsesaveEmailOrders(curEmailOrder)
: update the notification emailcheckBusinessTel(curBusTel)
: save or update the number if it has more than 7 characterssaveBusinessTel(curBusTel)
: Save the phone numbercheckBusinessCel(curBusCel)
: automatically saves the cell phone number if it has more than 10 numberssaveBusinessCel(curBusCel)
: save the cell phone numberchangePrinter(curPrinter)
: change the selected printer
Example of base theme
hideNotifications()
curEmailOrder
with the functionsaveEmailOrders(curEmailOrder)
curBusTel
with the functioncheckBusinessTel(curBusTel)
curBusCel
with the functioncheckBusinessCel(curBusCel)
changeCollapse(2)
Updated almost 6 years ago