mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-04 04:19:41 +01:00
replace . in template-ids with - to simplify css usage, as we do it the unique id already
This commit is contained in:
parent
af6e15e5cd
commit
a74795387e
@ -163,6 +163,15 @@ var et2_template = et2_DOMWidget.extend(
|
||||
|
||||
getDOMNode: function() {
|
||||
return this.div;
|
||||
},
|
||||
|
||||
/**
|
||||
* Replace . in template-ids with - to simplify css usage, as we do it the unique id already
|
||||
*
|
||||
* @param _id
|
||||
*/
|
||||
set_id: function(_id) {
|
||||
this._super.call(this, _id.replace('.', '-'));
|
||||
}
|
||||
});
|
||||
et2_register_widget(et2_template, ["template"]);
|
||||
|
Loading…
Reference in New Issue
Block a user