Skip to content

Commit 8062cf0

Browse files
committed
Changelog, version bump and gulped
1 parent 24eff37 commit 8062cf0

File tree

5 files changed

+20
-5
lines changed

5 files changed

+20
-5
lines changed

CHANGELOG

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
v0.7.11
2+
-------
3+
* New front page with a list of add-on:s based on a bower search! Thanks @unicornforce @Dervisevic @davidlgj
4+
* Twitter account, @ngSchemaForm, new releases will be announced here. Thanks @Dervisevic
5+
* copyValueTo form option. Thanks @Dervisevic
6+
17
v0.7.10
28
------
39
* Accessability additions, thanks @stramel

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"dist/schema-form.js",
55
"dist/bootstrap-decorator.js"
66
],
7-
"version": "0.7.10",
7+
"version": "0.7.11",
88
"authors": [
99
"Textalk",
1010
"David Jensen <[email protected]>",

dist/schema-form.js

+10-2
Original file line numberDiff line numberDiff line change
@@ -1379,7 +1379,7 @@ angular.module('schemaForm')
13791379
}
13801380
]);
13811381

1382-
angular.module('schemaForm').directive('schemaValidate', ['sfValidator', function(sfValidator) {
1382+
angular.module('schemaForm').directive('schemaValidate', ['sfValidator', 'sfSelect', function(sfValidator, sfSelect) {
13831383
return {
13841384
restrict: 'A',
13851385
scope: false,
@@ -1402,6 +1402,15 @@ angular.module('schemaForm').directive('schemaValidate', ['sfValidator', functio
14021402
};
14031403
var form = getForm();
14041404

1405+
if (form.copyValueTo) {
1406+
ngModel.$viewChangeListeners.push(function() {
1407+
var paths = form.copyValueTo;
1408+
angular.forEach(paths, function(path) {
1409+
sfSelect(path, scope.model, ngModel.$viewValue);
1410+
});
1411+
});
1412+
}
1413+
14051414
// Validate against the schema.
14061415

14071416
// Get in last of the parses so the parsed value has the correct type.
@@ -1436,7 +1445,6 @@ angular.module('schemaForm').directive('schemaValidate', ['sfValidator', functio
14361445
});
14371446
}
14381447

1439-
14401448
// Listen to an event so we can validate the input on request
14411449
scope.$on('schemaFormValidate', function() {
14421450

dist/schema-form.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
22
"name": "angular-schema-form",
3-
"version": "0.7.10",
3+
"version": "0.7.11",
44
"description": "Create complex forms from a JSON schema with angular.",
55
"repository": "Textalk/angular-schema-form",
66
"main": "dist/schema-form.min.js",
7+
"homepage": "http://textalk.github.io/angular-schema-form/",
78
"scripts": {
89
"test": "rm -fr coverage && ./node_modules/karma/bin/karma start --single-run --browsers PhantomJS karma.conf.js && find coverage/ -name lcov.info -print0 | xargs -0 cat | ./node_modules/coveralls/bin/coveralls.js"
910
},

0 commit comments

Comments
 (0)