dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #43998
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 22328: tracker/event-capture: custom form directive now uses parent scope. this makes it easy to render ...
------------------------------------------------------------
revno: 22328
committer: Abyot Asalefew Gizaw <abyot@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2016-03-15 15:42:33 +0100
message:
tracker/event-capture: custom form directive now uses parent scope. this makes it easy to render both registration and data entry custom forms at the same time.
modified:
dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.angular.directives.js
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.angular.directives.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.angular.directives.js 2016-03-08 16:27:49 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.angular.directives.js 2016-03-15 14:42:33 +0000
@@ -208,6 +208,9 @@
.directive('d2CustomForm', function ($compile) {
return{
restrict: 'E',
+ scope: {
+ customForm: '='
+ },
link: function (scope, elm, attrs) {
scope.$watch('customForm', function () {
if (angular.isObject(scope.customForm)) {