David 10 年之前
父節點
當前提交
55c3b5c171
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      front/controllers/uploadCtrl.js

+ 4 - 4
front/controllers/uploadCtrl.js

@@ -2,7 +2,7 @@ app.controller('uploadCtrl', function ($scope, $http,video,notify) {
 	$scope.profesor="";
 	$scope.texto1="";
 	$scope.texto2="";
-	$scope.video = video; 
+	$scope.video = video;
 	$scope.diapos = [];
 	$scope.profesores = [];
 
@@ -30,6 +30,7 @@ app.controller('uploadCtrl', function ($scope, $http,video,notify) {
 			function(data){
 			});
 	}
+
 	function respondCanvas(){
 		canvas.setAttribute('width', container.offsetWidth);
 		canvas.setAttribute('height', container.offsetWidth/4*3);
@@ -41,9 +42,8 @@ app.controller('uploadCtrl', function ($scope, $http,video,notify) {
 	if (!String.prototype.format) {
 		String.prototype.format = function() {
 		var args = arguments;
-		    return this.replace(/{(\d+)}/g, function(match, number) { 
-		      return
-				( typeof args[number] != 'undefined' ? args[number] : match );
+		    return this.replace(/{(\d+)}/g, function(match, number) {
+		      return ( typeof args[number] != 'undefined' ? args[number] : match );
 		    });
 		};
 	}