diff --git a/api/etemplate.php b/api/etemplate.php index ddff2cd431..49ed6a50d6 100644 --- a/api/etemplate.php +++ b/api/etemplate.php @@ -88,6 +88,8 @@ function send_template() 'customfields' => 'sub-type,use-private,field-names', 'date' => 'data_format,ignore', // Legacy option "mode" was never implemented in et2 'description' => 'bold-italic,link,activate_links,label_for,link_target,link_popup_size,link_title', + 'button' => 'image,ro_image', + 'buttononly' => 'image,ro_image', ); // prefer more specific type-subtype over just type $names = $legacy_options[$matches[1].$matches[2]] ?? $legacy_options[$matches[1]] ?? null; diff --git a/api/js/etemplate/Et2Widget/Et2Widget.ts b/api/js/etemplate/Et2Widget/Et2Widget.ts index d8c5d786d4..4ee5b3ffc9 100644 --- a/api/js/etemplate/Et2Widget/Et2Widget.ts +++ b/api/js/etemplate/Et2Widget/Et2Widget.ts @@ -1350,6 +1350,10 @@ function transformAttributes(widget, mgr : et2_arrayMgr, attributes) // Set as attribute (reflected in DOM) widget.setAttribute(attribute, attrValue); } + else if (attribute === 'options') + { + console.trace('Ignored setting depricated "options" attribute for widget #'+widget.id, widget); + } else { // Set as property, not attribute