fng-bootstrap-datetime 0.12.0-beta.194 → 0.12.0-beta.196

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -173,13 +173,14 @@ angular.module('ui.bootstrap.datetimepicker', ["ui.bootstrap.dateparser", "ui.bo
173
173
  // ****************************************************
174
174
  // HACK RIGHT HERE!
175
175
  // For cases where formsAngular.elemSecurityFuncBinding is set to either "one-time" or "normal", the
176
- // result of the call to handleReadOnlyDisabled() made by the fngUiBootstrapDatetimePicker directive will
177
- // include reference(s) to the function identified by formsAngular.elemSecurityFuncName (with the
178
- // assumption that external code has assigned a function of that name to $rootScope). because our
179
- // scope is isolated, this will be inaccessible unless we do the following...:
180
- if (formsAngular.elemSecurityFuncName) {
181
- $scope[formsAngular.elemSecurityFuncName] = $scope.$root[formsAngular.elemSecurityFuncName];
182
- }
176
+ // result of the call to handleReadOnlyDisabled() made by the fngUiBootstrapDatetimePicker directive might
177
+ // include reference(s) to two functions which our ancestor form scope should have been decorated with -
178
+ // isSecurelyDisabled and requiresDisabledChildren. Because our scope is isolated, these will be
179
+ // inaccessible to us unless we do the following...:
180
+ if (formsAngular.disabledSecurityFuncName) {
181
+ $scope.isSecurelyDisabled = $scope.$parent.isSecurelyDisabled;
182
+ $scope.requiresDisabledChildren = $scope.$parent.requiresDisabledChildren;
183
+ }
183
184
  // as this is only going to work for disabled state arising from fng security, and not the case
184
185
  // where an fng field has a string-valued readonly attribute that refers to a function on the parent
185
186
  // scope, it's only a partial solution. the general solution would presumably be to replace our isolated
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fng-bootstrap-datetime",
3
- "version": "0.12.0-beta.194",
3
+ "version": "0.12.0-beta.196",
4
4
  "description": "datetime input plugin for forms-angular",
5
5
  "main": "fng-bootstrap-datetime.js",
6
6
  "scripts": {