$scope.template_name_list = Object.keys(t);
}
});
+ egCore.hatch.getItem('cat.copy.last_template').then(function(t) {
+ if (t) $scope.template_name = t;
+ });
}
$scope.fetchTemplates();
- $scope.applyTemplate = function (n) {
+ $scope.applyTemplate = function (n) {
angular.forEach($scope.templates[n], function (v,k) {
if (k == 'circ_lib') {
$scope.working[k] = egCore.org.get(v);
});
}
});
- $scope.template_name = '';
+ egCore.hatch.setItem('cat.copy.last_template', n);
}
$scope.copytab = 'working';