forked from extern/egroupware
Fix framework asks always for jdots even if the jdots is not installed
This commit is contained in:
parent
f102460ac9
commit
4aa1156af0
@ -415,7 +415,7 @@ var fw_base = (function(){ "use strict"; return Class.extend(
|
||||
{
|
||||
this.serializedTabState = serialized;
|
||||
|
||||
egw.jsonq("api.jdots_framework.ajax_tab_changed_state.template", [data]);
|
||||
egw.jsonq('EGroupware\\Api\\Framework\\Ajax::ajax_tab_changed_state', [data]);
|
||||
}
|
||||
},
|
||||
|
||||
@ -857,7 +857,7 @@ var fw_base = (function(){ "use strict"; return Class.extend(
|
||||
tzSelection: function(_tz)
|
||||
{
|
||||
//Perform an AJAX request to tell server
|
||||
var req = egw.json('api.jdots_framework.ajax_tz_selection.template',[_tz],null,null,false); // false = synchron
|
||||
var req = egw.json('EGroupware\Api\Framework\Ajax::ajax_tz_selection',[_tz],null,null,false); // false = synchron
|
||||
req.sendRequest();
|
||||
|
||||
if (this.activeApp.browser)
|
||||
|
@ -302,7 +302,7 @@
|
||||
}
|
||||
|
||||
//Send the sort order to the server via ajax
|
||||
var req = egw.jsonq('api.jdots_framework.ajax_appsort.template', [name_array]);
|
||||
var req = egw.jsonq('EGroupware\\Api\\Framework\\Ajax::ajax_appsort', [name_array]);
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -423,7 +423,7 @@ abstract class Ajax extends Api\Framework
|
||||
*
|
||||
* @param string $tz
|
||||
*/
|
||||
function ajax_tz_selection($tz)
|
||||
static function ajax_tz_selection($tz)
|
||||
{
|
||||
Api\DateTime::setUserPrefs($tz); // throws exception, if tz is invalid
|
||||
|
||||
@ -660,7 +660,7 @@ abstract class Ajax extends Api\Framework
|
||||
* @param $tablist is an array which contains each tab as an associative array
|
||||
* with the keys 'appName' and 'active'
|
||||
*/
|
||||
public function ajax_tab_changed_state($tablist)
|
||||
public static function ajax_tab_changed_state($tablist)
|
||||
{
|
||||
$tabs = array();
|
||||
foreach($tablist as $data)
|
||||
@ -727,7 +727,7 @@ abstract class Ajax extends Api\Framework
|
||||
* @param $appname the name of the application
|
||||
* @param $width the width set
|
||||
*/
|
||||
public function ajax_sideboxwidth($appname, $width)
|
||||
public static function ajax_sideboxwidth($appname, $width)
|
||||
{
|
||||
//error_log(__METHOD__."($appname, $width)");
|
||||
//Check whether the supplied parameters are valid
|
||||
@ -742,7 +742,7 @@ abstract class Ajax extends Api\Framework
|
||||
*
|
||||
* @param array $apps
|
||||
*/
|
||||
public function ajax_appsort(array $apps)
|
||||
public static function ajax_appsort(array $apps)
|
||||
{
|
||||
$order = array();
|
||||
$i = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user