mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-09 16:35:02 +02:00
WIP EGroupware without phpgwapi&etemplate
This commit is contained in:
@ -284,7 +284,7 @@ etemplate2.prototype.bind_unload = function()
|
||||
{
|
||||
this.destroy_session = jQuery.proxy(function(ev)
|
||||
{
|
||||
var request = egw.json(this.app+".etemplate_new.ajax_destroy_session.etemplate",
|
||||
var request = egw.json("EGroupware\\Api\\Etemplate::ajax_destroy_session",
|
||||
[this.etemplate_exec_id], null, null, false);
|
||||
request.sendRequest();
|
||||
}, this);
|
||||
|
@ -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", [data]);
|
||||
egw.jsonq("api.jdots_framework.ajax_tab_changed_state.template", [data]);
|
||||
}
|
||||
},
|
||||
|
||||
@ -998,7 +998,7 @@ var fw_base = (function(){ "use strict"; return Class.extend(
|
||||
var app = framework.activeApp;
|
||||
framework.activeApp = '';
|
||||
framework.setActiveApp(app);
|
||||
|
||||
|
||||
egw.loading_prompt(app.appName,true,egw.lang('please wait...'),app.browser.baseDiv, egwIsMobile()?'horizental':'spinner');
|
||||
|
||||
// Give framework a chance to deal, then reset the etemplates
|
||||
|
@ -302,7 +302,7 @@
|
||||
}
|
||||
|
||||
//Send the sort order to the server via ajax
|
||||
var req = egw.jsonq('api.jdots_framework.ajax_appsort', [name_array]);
|
||||
var req = egw.jsonq('api.jdots_framework.ajax_appsort.template', [name_array]);
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -289,7 +289,7 @@
|
||||
window.setTimeout(resize_popup, 50);
|
||||
});
|
||||
}
|
||||
var et2 = new etemplate2(node, currentapp+".etemplate_new.ajax_process_content.etemplate");
|
||||
var et2 = new etemplate2(node, "EGroupware\\Api\\Etemplate::ajax_process_content");
|
||||
et2.load(data.name,data.url,data.data);
|
||||
if (typeof data.response != 'undefined')
|
||||
{
|
||||
|
@ -283,7 +283,7 @@ egw.extend("data", egw.MODULE_APP_LOCAL, function (_app, _wnd)
|
||||
|
||||
/**
|
||||
* The dataFetch function provides an abstraction layer for the
|
||||
* corresponding "etemplate_widget_nextmatch::ajax_get_rows" function.
|
||||
* corresponding "EGroupware\Api\Etemplate\Widget\Nextmatch::ajax_get_rows" function.
|
||||
* The server returns the following structure:
|
||||
* {
|
||||
* order: [uid, ...],
|
||||
@ -429,7 +429,7 @@ egw.extend("data", egw.MODULE_APP_LOCAL, function (_app, _wnd)
|
||||
// independent of changes happening while waiting for the response
|
||||
_context.filters = jQuery.extend({}, _filters);
|
||||
var request = egw.json(
|
||||
_app+".etemplate_widget_nextmatch.ajax_get_rows.etemplate",
|
||||
"EGroupware\\Api\\Etemplate\\Widget\\Nextmatch::ajax_get_rows",
|
||||
[
|
||||
_execId,
|
||||
_queriedRange,
|
||||
@ -836,7 +836,7 @@ egw.extend("data_storage", egw.MODULE_GLOBAL, function (_app, _wnd) {
|
||||
if(typeof registeredCallbacks[_uid] !== "undefined" && registeredCallbacks[_uid].length > 0)
|
||||
{
|
||||
var _execId = registeredCallbacks[_uid][0].execId;
|
||||
// This widget ID MUST be a nextmatch, because the data call is to etemplate_widget_nexmatch
|
||||
// This widget ID MUST be a nextmatch, because the data call is to Etemplate\Widget\Nexmatch
|
||||
var nextmatchId = registeredCallbacks[_uid][0].widgetId;
|
||||
var uid = _uid.split("::");
|
||||
var context = {
|
||||
|
@ -398,7 +398,7 @@ egw.extend('links', egw.MODULE_GLOBAL, function()
|
||||
// if there's no active jsonq request, start a new one
|
||||
if (title_uid == null)
|
||||
{
|
||||
title_uid = this.jsonq(_app+'.etemplate_widget_link.ajax_link_titles.etemplate',[{}], this.link_title_callback, this, this.link_title_before_send);
|
||||
title_uid = this.jsonq('EGroupware\\Api\\Etemplate\\Widget\\Link::ajax_link_titles',[{}], this.link_title_callback, this, this.link_title_before_send);
|
||||
}
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user