function _delete(k, a) { var _a = []; for (i in a) if (typeof a[i] != 'function' && a[i] != k) _a.push(a[i]); return _a; }if (jQuery) { jQuery.noConflict(); } /* class _M */ /* class _C */ /* class _V */ /** popin ------------------------------------------------------------ */ jQuery(function() { init_tgblk(); }); var _inPop = { /** * @see _AjaxPopin.send() */ open : function(_kP, data) { if (typeof _AjaxPopin == undefined) return; // controle si requete deja lancee if (jQuery.inArray(_kP, this.poping) != -1) return; this.poping.push(_kP); // loader jQuery('#_popin_loader').addClass('load1'); var $this = this, xhr = new _AjaxPopin(_kP, data); xhr.send() .done(function(){ jQuery('#_popin_wrap ._popin:last-child textarea').eq(0).focus(); }) .always(function() { // delivre le _kP $this.poping = _delete(_kP, $this.poping); // remove loader si aucune requete en cours if (!$this.poping.length) jQuery('#_popin_loader').removeClass('load1'); }); }, /** * @param object|string selector : this bouton ou selector css */ close : function(selector) { jQuery(selector).closest('._popin').remove(); }, /** * private */ poping : [] }; function init_tgblk() { jQuery('._tgblk').attr('target', '_blank'); }