Search for Resources and Solutions

Display alerts in Midrub with popup_fon

Any theme should use the method Main.popup_fon to display js alerts. Nevermind which theme is. Each theme should have styles for popup_fon.

By default Main.popup_fon adds the alert html code after section, displays it and after some time removes it.

Main.popup_fon has these parameters:

  • cl - is the class name and it is useful to display success and error alerts.
  • msg - contains the alert's message.
  • ft - has the time to load an alert.
  • lt - has the time to hide an alert.

The code is simply and by using css, you can custom it as you prefer.

Was this article helpful?