return $clone;
},
// populate modal
- populate : function($modal, header, $body, footer) {
+ populate : function($modal, header, $body, footer, ajax) {
+ if (ajax === undefined && ajax !== false) {
+ $.getJSON('/web.json'); // session check per modal
+ }
var $h3 = $modal.find("h3");
$h3.text(header);