$scope.applyTemplate = function (n) {
angular.forEach($scope.templates[n], function (v,k) {
- if (!angular.isObject(v)) {
+ if (k == 'circ_lib') {
+ $scope.working[k] = egCore.org.get(v);
+ } else if (!angular.isObject(v)) {
$scope.working[k] = angular.copy(v);
} else {
angular.forEach(v, function (sv,sk) {
$scope.applyTemplate = function (n) {
angular.forEach($scope.templates[n], function (v,k) {
- if (!angular.isObject(v)) {
+ if (k == 'circ_lib') {
+ $scope.working[k] = egCore.org.get(v);
+ } else if (!angular.isObject(v)) {
$scope.working[k] = angular.copy(v);
} else {
angular.forEach(v, function (sv,sk) {
});
createSimpleUpdateWatcher('age_protect');
- createSimpleUpdateWatcher('circ_lib');
createSimpleUpdateWatcher('circulate');
createSimpleUpdateWatcher('holdable');
createSimpleUpdateWatcher('fine_level');