fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [17203] more on api-mode


From: sigurdne
Subject: [Fmsystem-commits] [17203] more on api-mode
Date: Sun, 29 Oct 2017 12:52:39 -0400 (EDT)

Revision: 17203
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=17203
Author:   sigurdne
Date:     2017-10-29 12:52:39 -0400 (Sun, 29 Oct 2017)
Log Message:
-----------
more on api-mode

Modified Paths:
--------------
    trunk/phpgwapi/inc/class.uicommon_jquery.inc.php

Modified: trunk/phpgwapi/inc/class.uicommon_jquery.inc.php
===================================================================
--- trunk/phpgwapi/inc/class.uicommon_jquery.inc.php    2017-10-29 12:15:09 UTC 
(rev 17202)
+++ trunk/phpgwapi/inc/class.uicommon_jquery.inc.php    2017-10-29 16:52:39 UTC 
(rev 17203)
@@ -422,6 +422,12 @@
                        $this->add_jquery_translation($data);
                        $data['webserver_url'] = 
$GLOBALS['phpgw_info']['server']['webserver_url'];
 
+                       if (phpgw::get_var('phpgw_return_as', 'string', 'GET') 
== 'json' )
+                       {
+                               echo json_encode($data);
+                               $GLOBALS['phpgw']->common->phpgw_exit();
+                       }
+
                        $output = phpgw::get_var('output', 'string', 'REQUEST', 
'html');
                        $GLOBALS['phpgw']->xslttpl->set_output($output);
                        $this->add_template_file($files);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]