forked from extern/egroupware
Fix so namespaces work even without content data
This commit is contained in:
parent
a204c7fb4b
commit
bbfcb19ab8
@ -22,9 +22,9 @@
|
|||||||
*
|
*
|
||||||
* @ToDo supported customized templates stored in DB, currently we only support xet files stored in filesystem
|
* @ToDo supported customized templates stored in DB, currently we only support xet files stored in filesystem
|
||||||
*/
|
*/
|
||||||
class etemplate extends etemplate_old {};
|
//class etemplate extends etemplate_old {};
|
||||||
class etemplate_new extends etemplate_widget_template
|
//class etemplate_new extends etemplate_widget_template
|
||||||
//class etemplate extends etemplate_widget_template
|
class etemplate extends etemplate_widget_template
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Are we running as sitemgr module or not
|
* Are we running as sitemgr module or not
|
||||||
|
@ -381,7 +381,8 @@ var et2_readonlysArrayMgr = et2_arrayMgr.extend({
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Otherwise return the default value
|
// Otherwise return the default value
|
||||||
return (typeof this.getEntry("__ALL__") != "undefined");
|
entry = this.getEntry("__ALL__");
|
||||||
|
return entry !== null && (typeof entry != "undefined");
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@ -817,7 +817,7 @@ var et2_widget = Class.extend({
|
|||||||
|
|
||||||
// Check whether the manager has a namespace for the id of this object
|
// Check whether the manager has a namespace for the id of this object
|
||||||
var entry = mgr.getEntry(this.id);
|
var entry = mgr.getEntry(this.id);
|
||||||
if (typeof entry === 'object' && entry !== null)
|
if (typeof entry === 'object' && entry !== null||this.id )
|
||||||
{
|
{
|
||||||
// The content manager has an own node for this object, so
|
// The content manager has an own node for this object, so
|
||||||
// create an own perspective.
|
// create an own perspective.
|
||||||
|
@ -55,7 +55,7 @@ var et2_template = et2_DOMWidget.extend({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
createNamespace: true,
|
createNamespace: false,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initializes this template widget as a simple container.
|
* Initializes this template widget as a simple container.
|
||||||
|
Loading…
Reference in New Issue
Block a user