mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-17 20:11:23 +02:00
- Pull application name from template ID for image
- Use label as tooltip - Apply CSS classes to image
This commit is contained in:
@@ -745,6 +745,26 @@ var et2_widget = Class.extend({
|
||||
return this._parent.getInstanceManager();
|
||||
}
|
||||
|
||||
return null;
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns the application for the template the widget is in.
|
||||
* If a sub-template is used, this may be different from the current app.
|
||||
*/
|
||||
getTemplateApp: function() {
|
||||
if(this._template_application)
|
||||
{
|
||||
return this._template_application;
|
||||
}
|
||||
else if(this._type == 'template' && this.id)
|
||||
{
|
||||
var parts = this.id.split(".",2);
|
||||
return parts[0];
|
||||
} else if (this.getParent()) {
|
||||
this._template_application = this.getParent().getTemplateApp();
|
||||
return this._template_application;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user