mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-17 12:10:49 +01:00
etemplate2 object now creates not passed entries in the data array
This commit is contained in:
parent
8c9fd0f636
commit
fd21e247a1
@ -60,6 +60,22 @@ etemplate2.prototype.clear = function()
|
|||||||
*/
|
*/
|
||||||
etemplate2.prototype._createArrayManagers = function(_data)
|
etemplate2.prototype._createArrayManagers = function(_data)
|
||||||
{
|
{
|
||||||
|
if (typeof _data == "undefined")
|
||||||
|
{
|
||||||
|
_data = {};
|
||||||
|
}
|
||||||
|
|
||||||
|
// Create all neccessary _data entries
|
||||||
|
var neededEntries = ["content", "readonlys", "validation_errors"];
|
||||||
|
for (var i = 0; i < neededEntries.length; i++)
|
||||||
|
{
|
||||||
|
if (typeof _data[neededEntries[i]] == "undefined")
|
||||||
|
{
|
||||||
|
et2_debug("info", "Created not passed entry '" + neededEntries[i] + "' in data array.");
|
||||||
|
_data[neededEntries[i]] = {};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var result = {};
|
var result = {};
|
||||||
|
|
||||||
// Create an array manager object for each part of the _data array.
|
// Create an array manager object for each part of the _data array.
|
||||||
|
Loading…
Reference in New Issue
Block a user