Fix bug in calculating readonly based on parent. Fixes readonly templates still having editable content.

This commit is contained in:
Nathan Gray 2014-02-27 21:26:10 +00:00
parent afbc73392c
commit 9a7033ece9

View File

@ -643,7 +643,7 @@ var et2_widget = Class.extend(
var readonly = attributes["readonly"] =
this.getArrayMgr("readonlys").isReadOnly(
_node.getAttribute("id"), _node.getAttribute("readonly"),
this.readonly);
typeof this.readonly !== 'undefined' ? this.readonly : this.options.readonly );
// Check to see if modifications change type
var modifications = this.getArrayMgr("modifications");