mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-09 07:28:43 +01:00
Move special path handling from nextmatch up to top level so it can work for all widgets with a namespace and their own value
This commit is contained in:
parent
07ec496a8e
commit
bff821e300
@ -1032,7 +1032,12 @@ var et2_widget = ClassWithAttributes.extend(
|
||||
* this, but some extensions need to override this
|
||||
*/
|
||||
getPath: function() {
|
||||
return this.getArrayMgr("content").getPath();
|
||||
var path = this.getArrayMgr("content").getPath();
|
||||
|
||||
// Prevent namespaced widgets with value from going an extra layer deep
|
||||
if(this.id && this.createNamespace && path[path.length -1] == this.id) path.pop();
|
||||
|
||||
return path;
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -1674,12 +1674,6 @@ var et2_nextmatch = et2_DOMWidget.extend([et2_IResizeable, et2_IInput],
|
||||
return null;
|
||||
},
|
||||
|
||||
getPath: function() {
|
||||
var path = this._super.apply(this,arguments);
|
||||
if(this.id && path[path.length -1] == this.id) path.pop();
|
||||
return path;
|
||||
},
|
||||
|
||||
// Input widget
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user