fix true handling from query
							parent
							
								
									b87661c846
								
							
						
					
					
						commit
						b03970ea1d
					
				|  | @ -202,10 +202,16 @@ | |||
| 			var hashData = $location.search(); | ||||
| 
 | ||||
| 			for (var key in hashData) { | ||||
| 				// handle false
 | ||||
| 				if (hashData[key] === 'false') { | ||||
| 					hashData[key] = false; | ||||
| 				} | ||||
| 
 | ||||
| 				// handle true
 | ||||
| 				if ((hashData[key] === 'true' || hashData[key] === '') && typeof $scope.data[key] === 'boolean') { | ||||
| 					hashData[key] = true; | ||||
| 				} | ||||
| 
 | ||||
| 				if ($scope.data[key] !== undefined && typeof $scope.data[key] === typeof hashData[key]) { | ||||
| 					$scope.isDirty = true; | ||||
| 					$scope.data[key] = hashData[key]; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Szekeres Bálint
						Szekeres Bálint