client/app/slides/slides_controller.js
changeset 70 e7e9f2ff6f10
parent 55 10fd23382e76
child 76 aa0a2d37faca
equal deleted inserted replaced
69:88f76bf93465 70:e7e9f2ff6f10
    16 	.directive('slideEditor', function() {
    16 	.directive('slideEditor', function() {
    17 		return {
    17 		return {
    18 			restrict: 'AE',
    18 			restrict: 'AE',
    19 			replace: true,
    19 			replace: true,
    20 			scope: false,
    20 			scope: false,
    21 			templateUrl: 'slides/dataEditor.html',
    21 			templateUrl: 'slides/data_editor.html',
    22 			controller: function($scope){
    22 			controller: function($scope){
    23 				$scope.slidesave = function(){
    23 				$scope.slidesave = function(){
    24 					if(typeof $scope.slide.tags === 'string'){
    24 					if(typeof $scope.slide.tags === 'string'){
    25 						$scope.slide.tags = $scope.slide.tags.split(',');
    25 						$scope.slide.tags = $scope.slide.tags.split(',');
    26 						for (var i = $scope.slide.tags.length - 1; i >= 0; i--) {
    26 						for (var i = $scope.slide.tags.length - 1; i >= 0; i--) {