Mike пре 9 година
родитељ
комит
01a48837c1
1 измењених фајлова са 4 додато и 2 уклоњено
  1. 4 2
      yanshi/www/js/controllers.js

+ 4 - 2
yanshi/www/js/controllers.js

xqd
@@ -226,8 +226,10 @@ starter.controller('showCtrl',["$scope",'$ionicHistory','$state','$timeout','$st
 }])
 starter.filter('filet', function () {
     return function (filepath) {
-        var pos = filepath.replace(".xlsx", "");
-        return pos;
+    	if(filepath){
+        	var pos = filepath.replace(".xlsx", "");
+        	return pos;
+        }
     };
 }) 
 starter.directive('main', function() {