apostrophe-schemas
Advanced tools
Comparing version 0.5.63 to 0.5.64
{ | ||
"version": "0.5.63", | ||
"version": "0.5.64", | ||
"name": "apostrophe-schemas", | ||
@@ -4,0 +4,0 @@ "description": "Schemas for easy editing of properties in Apostrophe objects", |
@@ -677,5 +677,6 @@ /* globals: async, apos, _, aposPages, async, $ */ | ||
self.addError = function($el, name, required) { | ||
self.findSafe($el, '[data-name="' + name + '"]').addClass('apos-error'); | ||
var $field = self.findSafe($el, '[data-name="' + name + '"]'); | ||
$field.addClass('apos-error'); | ||
if (required === true) { | ||
self.findSafe($el, '[data-name="' + name + '"]').find('label').append('<span class="apos-error-message"> * required</span>'); | ||
self.findSafe($field, 'label').append('<span class="apos-error-message"> * required</span>'); | ||
} | ||
@@ -682,0 +683,0 @@ }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1579
114349