PHP Classes

File: templates/pgwjs/alert.js

Recommend this page to a friend!
  Classes of Thierry Feuzeu   Modals, alerts and confirmation dialogs for Jaxon   templates/pgwjs/alert.js   Download  
File: templates/pgwjs/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: 6 years ago
Size: 613 bytes
 

Contents

Class file image Download
jaxon.dialogs.pgwjs = { defaults: {maxWidth: 400}, options: {} }; <?php echo $this->options ?> jaxon.command.handler.register("pgw.modal", function(args) { // Set user and default options into data only when they are missing for(key in jaxon.dialogs.pgwjs.options) { if(!(key in args.data)) { args.data[key] = jaxon.dialogs.pgwjs.options[key]; } } for(key in jaxon.dialogs.pgwjs.defaults) { if(!(key in args.data)) { args.data[key] = jaxon.dialogs.pgwjs.defaults[key]; } } $.pgwModal(args.data); });