mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-21 21:40:56 +02:00
Now using the etemplate code from the root instance (etemplate2.js acts as a egw api plugin); fixed egw.json plugins; fixed problem with 'instanceof Object', which does not work when sharing code over multiple windows
This commit is contained in:
@@ -526,12 +526,12 @@ var et2_widget = Class.extend({
|
||||
if(this.getArrayMgr("modifications"))
|
||||
{
|
||||
var data = this.getArrayMgr("modifications").getEntry(this.id);
|
||||
if (data instanceof Object)
|
||||
if (typeof data === 'object')
|
||||
{
|
||||
for (var key in data)
|
||||
{
|
||||
// TODO: Why?
|
||||
if (!(data[key] instanceof Object))
|
||||
if (!(typeof data[key] === 'object'))
|
||||
{
|
||||
_attrs[key] = data[key];
|
||||
}
|
||||
@@ -792,7 +792,7 @@ var et2_widget = Class.extend({
|
||||
}
|
||||
|
||||
// Check whether the manager has a namespace for the id of this object
|
||||
if (mgr.getEntry(this.id) instanceof Object)
|
||||
if (typeof mgr.getEntry(this.id) === 'object')
|
||||
{
|
||||
// The content manager has an own node for this object, so
|
||||
// create an own perspective.
|
||||
|
Reference in New Issue
Block a user