do not overwrite already evaluated readonly attribute, allows to set buttons readonly in template and make them visible via $readonlys[$id] = false

This commit is contained in:
Ralf Becker 2016-03-14 13:09:58 +00:00
parent 064a10c990
commit a449b5e93b

View File

@ -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")