apostrophe-schemas
Advanced tools
Comparing version 0.5.71 to 0.5.72
11
index.js
@@ -699,2 +699,11 @@ /* jshint node:true */ | ||
} | ||
// Allow alternate names for fields. Very useful when importing | ||
// from a previous schema. -Tom | ||
_.each(schema, function(field) { | ||
if ((!_.has(data, field.name)) && field.alternate && _.has(data, field.alternate)) { | ||
data[field.alternate] = data[field.name]; | ||
} | ||
}); | ||
return async.eachSeries(schema, function(field, callback) { | ||
@@ -934,3 +943,3 @@ // Fields that are contextual are edited in the context of a | ||
}; | ||
return apos.get(req, criteria, filters, callback); | ||
return self._apos.get(req, criteria, filters, callback); | ||
}; | ||
@@ -937,0 +946,0 @@ } |
{ | ||
"version": "0.5.71", | ||
"version": "0.5.72", | ||
"name": "apostrophe-schemas", | ||
@@ -4,0 +4,0 @@ "description": "Schemas for easy editing of properties in Apostrophe objects", |
@@ -713,3 +713,12 @@ /* globals: async, apos, _, aposPages, async, $ */ | ||
// Awesome plugin | ||
var $element = self.findSafe($el, '.apos-error').scrollintoview(); | ||
var $element = self.findSafe($el, '.apos-error'); | ||
if (!$element.is(':visible')) { | ||
// Make sure parent tab is active | ||
var tabId = $element.closest('[data-tab-id]').attr('data-tab-id'); | ||
if (tabId) { | ||
apos.activateTab($element, tabId); | ||
} | ||
} | ||
$element.scrollintoview(); | ||
$element.find('input,select,textarea').first().focus(); | ||
@@ -716,0 +725,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
115896
1622