Update october.inspector.js
Reused validationMessage, and now allowing for string zero
This commit is contained in:
parent
f628eaf666
commit
4d66734cc3
|
|
@ -817,8 +817,8 @@
|
|||
InspectorEditorString.prototype.validate = function() {
|
||||
var val = $.trim($(this.selector).val())
|
||||
|
||||
if (this.fieldDef.required && !val)
|
||||
return this.fieldDef.requiredMessage || 'Required fields were left blank.'
|
||||
if (this.fieldDef.required && val.length === 0)
|
||||
return this.fieldDef.validationMessage || 'Required fields were left blank.'
|
||||
|
||||
if (this.fieldDef.validationPattern === undefined)
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in New Issue