From a449b5e93b13ba99fa04231c7e4101c5c3086dd8 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 14 Mar 2016 13:09:58 +0000 Subject: [PATCH] do not overwrite already evaluated readonly attribute, allows to set buttons readonly in template and make them visible via $readonlys[$id] = false --- etemplate/js/et2_core_widget.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/etemplate/js/et2_core_widget.js b/etemplate/js/et2_core_widget.js index 5b96ea154e..408519d85e 100644 --- a/etemplate/js/et2_core_widget.js +++ b/etemplate/js/et2_core_widget.js @@ -550,6 +550,10 @@ var et2_widget = (function(){ "use strict"; return ClassWithAttributes.extend( } } } + else if (attrName == "readonly" && typeof _target[attrName] != "undefined") + { + // do NOT overwrite already evaluated readonly attribute + } else { if (mgr != null && typeof _proto.attributes[attrName] != "undefined")