fix tabs added by code where not reported and sometimes missing clickable class for image buttons

This commit is contained in:
Ralf Becker 2018-12-04 17:05:39 +01:00
parent 63fa1e98db
commit dc073f858a
2 changed files with 2 additions and 1 deletions

View File

@ -91,6 +91,7 @@ var et2_button = (function(){ "use strict"; return et2_baseWidget.extend([et2_II
{
this.image = jQuery(document.createElement("img"))
.addClass("et2_button et2_button_icon");
if (!this.options.readonly) this.image.addClass("et2_clickable");
this.setDOMNode(this.image[0]);
return;
}

View File

@ -216,7 +216,7 @@ var et2_tabbox = (function(){ "use strict"; return et2_valueWidget.extend([et2_I
tab_options.content = tab.id;
}
tabData[tab.prepend ? 'unshift' : 'push'].call(tabData, {
"id": tab.id,
"id": tab_id,
"label": this.egw().lang(tab.label),
"widget": null,
"widget_options": tab_options,