From f513bee88bb7c734dd65486e230cc497c2fc8894 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Wed, 15 Oct 2008 13:28:40 +0000 Subject: [PATCH] Added popup screen ajax option. --- includes/ajax.inc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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) -- 2.30.2