Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
if (dorado.widget.UpdateAction) {
	dorado.widget.UpdateAction.alertException=function(){…};
}

设置Date类型数据FormElement在只读情况下不显示trigger按钮

Code Block
javascript
if (dorado.widget.FormElement){
	dorado.widget.FormElement.prototype.getUserEditor=dorado.widget.FormElement.prototype.getEditor;
	dorado.widget.FormElement.prototype.getEditor = function(create){
		var editor = this.getUserEditor(create);
		var propertyDef = this.getBindingPropertyDef();
		if (propertyDef) {
			var propertyDataType = propertyDef.get("dataType");
			if (propertyDataType instanceof dorado.datatype.DateDataType && this.get("readOnly")) {
				editor.set("trigger",null);
			}
		}
		return editor;
	}
}