Remove some more references to phpgwapi/js/egw_json.js

This commit is contained in:
Nathan Gray 2013-09-10 18:56:50 +00:00
parent dcfcec3ab1
commit 02c6f3b108
3 changed files with 6 additions and 10 deletions

View File

@ -13,9 +13,6 @@
"use strict";
/*egw:uses
// Force some base libraries to be loaded
jquery.jquery;
/phpgwapi/egw_json.js;
// Include the action system
egw_action.egw_action;

View File

@ -238,12 +238,11 @@ var et2_itempicker = et2_inputWidget.extend(
this.itemlist.addClass("loading");
this.clear.css("display", "inline-block");
var request = new egw_json_request("etemplate_widget_itempicker::ajax_item_search::etemplate",
egw._json("etemplate_widget_itempicker::ajax_item_search::etemplate",
[this.current_app, '', request.term, request.options],
this
);
request.sendRequest(true, this.queryResults, this);
this.queryResults,
this,true,this
).sendRequest();
},
/**

View File

@ -367,7 +367,7 @@ etemplate2.prototype.submit = function(button)
}
// Create the request object
if (typeof egw_json_request != "undefined" && this.menuaction)
if (this.menuaction)
{
var api = this.widgetContainer.egw();
var request = api.json(this.menuaction, [this.etemplate_exec_id,values], null, this);
@ -375,7 +375,7 @@ etemplate2.prototype.submit = function(button)
}
else
{
egw.debug("info", "Form got submitted with values: ", values);
this.widgetContainer.egw().debug("warn", "Missing menuaction for submit. Values: ", values);
}
}
};