PHP Classes

File: templates/simplytoast/alert.js

Recommend this page to a friend!
  Classes of Thierry Feuzeu  >  Modals, alerts and confirmation dialogs for Jaxon  >  templates/simplytoast/alert.js  >  Download  
File: templates/simplytoast/alert.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Modals, alerts and confirmation dialogs for Jaxon
Display Ajax modal, alert and confirmation dialogs
Author: By
Last change:
Date: 4 years ago
Size: 957 bytes


Class file image Download
jaxon.dialogs.simplytoast = {
    success: function(content, title) {
        $.simplyToast(content, 'success', <?php echo $this->options ?>);
    info: function(content, title) {
        $.simplyToast(content, 'info', <?php echo $this->options ?>);
    warning: function(content, title) {
        $.simplyToast(content, 'warning', <?php echo $this->options ?>);
    error: function(content, title) {
        $.simplyToast(content, 'danger', <?php echo $this->options ?>);

jaxon.command.handler.register("simply.alert", function(args) {
    $.simplyToast(,, <?php echo $this->options ?>);

<?php if(($this->defaultForAlert)): ?>
jaxon.ajax.message.success = jaxon.dialogs.simplytoast.success; =;
jaxon.ajax.message.warning = jaxon.dialogs.simplytoast.warning;
jaxon.ajax.message.error = jaxon.dialogs.simplytoast.error;
<?php endif ?>
For more information send a message to info at phpclasses dot org.