Browse Source

处理搜索空格能进行搜索的bug

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@8476 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
hejq 9 years ago
parent
commit
f8512be0da
1 changed files with 2 additions and 6 deletions
  1. 2 6
      src/main/webapp/resources/js/index/app.js

+ 2 - 6
src/main/webapp/resources/js/index/app.js

@@ -720,7 +720,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
 	  }
 	});
 	
-	app.controller('MyCtrl', ['$scope', '$rootScope', '$modal', 'toaster', function($scope, $rootScope, $modal, toaster) {
+	app.controller('MyCtrl', ['$scope', '$rootScope', '$modal', function($scope, $rootScope, $modal) {
 		$rootScope.$on('$locationChangeSuccess', function(evt, newUrl) {
 			var routeState = newUrl.substr(newUrl.indexOf('#/') + 2);
 			if (routeState.indexOf('/') > -1)
@@ -734,8 +734,6 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
 			if(keyword != null && keyword != '') {
 				$rootScope.searchKeyword = keyword;
 				window.location.hash = '#/search?keyword='+keyword;
-			} else {
-				toaster.pop('info', '提示', '请输入有效字符');
 			}
 		};
 
@@ -1500,7 +1498,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
         //     });
         // });
 
-        SnapshotService.getOpenTender(5, function(data){
+        SnapshotService.getOpenTender(function(data){
             $scope.openTenders = data;
             var newDate = new Date();
             newDate = newDate.getTime() - 3*24*60*60*1000;
@@ -13805,8 +13803,6 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
 				$scope.keyword = keyword;
 				$scope.tableParams.page(1);
 				$scope.tableParams.reload();
-			} else {
-				toaster.pop('info', '提示', '请输入有效字符');
 			}
 		};