From dab51d0aee7f5e6332f029f3988ef06393ed70ef Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Sun, 15 Mar 2015 18:25:42 -0700 Subject: [PATCH] crmUiField - Remove double-$parent --- js/angular-crm-ui.js | 8 +++----- partials/crmUi/field-cb.html | 2 +- partials/crmUi/field.html | 4 ++-- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/js/angular-crm-ui.js b/js/angular-crm-ui.js index e68b3a10f7..e46f814b1f 100644 --- a/js/angular-crm-ui.js +++ b/js/angular-crm-ui.js @@ -129,9 +129,9 @@ // string, e.g. "myform.myfield" crmUiField: '@', // string, an expression producing a printable title - crmTitle: '@', + crmTitle: '=', // string, an expression producing a help id - crmHelp: '@' + crmHelp: '=' }, templateUrl: function(tElement, tAttrs){ var layout = tAttrs.crmLayout ? tAttrs.crmLayout : 'default'; @@ -141,9 +141,7 @@ link: function (scope, element, attrs, crmUiIdCtrl) { $(element).addClass('crm-section'); scope.crmUiField = attrs.crmUiField; - scope.crmTitle = attrs.crmTitle; - scope.crmHelp = attrs.crmHelp; - scope.crmUiHelpFile = scope.$parent.crmUiHelpFile; + scope.crmUiHelpFile = scope.$parent.crmUiHelpFile; // propagate default } }; }) diff --git a/partials/crmUi/field-cb.html b/partials/crmUi/field-cb.html index 860454e15e..5428b7316e 100644 --- a/partials/crmUi/field-cb.html +++ b/partials/crmUi/field-cb.html @@ -1,7 +1,7 @@
diff --git a/partials/crmUi/field.html b/partials/crmUi/field.html index 7f27ae342d..5667526b47 100644 --- a/partials/crmUi/field.html +++ b/partials/crmUi/field.html @@ -1,6 +1,6 @@
- - + +
-- 2.25.1