From: Janusz Dobrowolski Date: Wed, 15 Oct 2008 13:28:40 +0000 (+0000) Subject: Added popup screen ajax option. X-Git-Tag: v2.4.2~19^2~1850 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=f513bee88bb7c734dd65486e230cc497c2fc8894;p=fa-stable.git Added popup screen ajax option. --- diff --git a/includes/ajax.inc b/includes/ajax.inc index 135ee03d..ce8c9655 100644 --- a/includes/ajax.inc +++ b/includes/ajax.inc @@ -25,11 +25,17 @@ class Ajax extends JsHttpRequest { // function redirect($url) { if(in_ajax()) { - $this->_addCommand(true, array('n'=>'rd'),$url); + $this->_addCommand(true, array('n'=>'rd'),$url); $this->run(); } } // + // Popup window (target=_blank) + // + function popup($url) { + $this->_addCommand(true, array('n'=>'pu'),$url); + } + // // Adds an executable Javascript code. // function addScript($trigger, $sJS)