<script src="[% ctx.media_prefix %]/js/ui/default/staff/services/eframe.js"></script>
<script src="[% ctx.media_prefix %]/js/ui/default/staff/cat/volcopy/app.js"></script>
<script src="[% ctx.media_prefix %]/js/ui/default/staff/cat/services/record.js"></script>
+<script>
+angular.module('egCoreMod').run(['egStrings', function(s) {
+ s.VOL_COPY_TEMPLATE_SUCCESS_SAVE = "[% l('Saved volume/copy template(s)') %]";
+ s.VOL_COPY_TEMPLATE_SUCCESS_DELETE = "[% l('Deleted volume/copy template') %]";
+}]);
+</script>
[% END %]
<style>
}
})
+.config(['ngToastProvider', function(ngToastProvider) {
+ ngToastProvider.configure({
+ verticalPosition: 'bottom',
+ animation: 'fade'
+ });
+}])
+
.config(function($routeProvider, $locationProvider, $compileProvider) {
$locationProvider.html5Mode(true);
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|blob):/); // grid export
scope: {
editTemplates: '=',
},
- controller : ['$scope','$window','itemSvc','egCore',
- function ( $scope , $window , itemSvc , egCore ) {
+ controller : ['$scope','$window','itemSvc','egCore','ngToast',
+ function ( $scope , $window , itemSvc , egCore , ngToast) {
$scope.defaults = { // If defaults are not set at all, allow everything
barcode_checkdigit : false,
$scope.template_name = '';
egCore.hatch.setItem('cat.copy.templates', $scope.templates);
$scope.$parent.fetchTemplates();
+ ngToast.create(egCore.strings.VOL_COPY_TEMPLATE_SUCCESS_DELETE);
}
}
egCore.hatch.setItem('cat.copy.templates', $scope.templates);
$scope.$parent.fetchTemplates();
}
+ ngToast.create(egCore.strings.VOL_COPY_TEMPLATE_SUCCESS_SAVE);
}
$scope.templates = {};