@@ -38,11 +38,10 @@ searchApp
3838 $scope . link = "http://" + location . host + "/csp/docbook/DocBook.UI.Page.cls?KEY=" ;
3939
4040 $scope . SwitchClick = function ( ) {
41- if ( $scope . frankenshtein == true ) {
41+ if ( $scope . frankenshtein == true )
4242 $scope . frankenshtein = false ;
43- }
44- else {
45- $scope . frankenshtein = true ; }
43+ else
44+ $scope . frankenshtein = true ;
4645 }
4746 $scope . SwitchClickV2 = function ( ) {
4847 $scope . SwitchClick ( ) ;
@@ -58,22 +57,22 @@ searchApp
5857 }
5958 } ) ;
6059
61- $scope . phraseClear = function ( ) {
60+ $scope . phraseClear = function ( ) {
6261 $scope . search . phrase = "" ;
6362 $scope . makeSearch ( ) ;
6463 }
6564
66- $scope . anyWordsClear = function ( ) {
65+ $scope . anyWordsClear = function ( ) {
6766 $scope . search . anyWords = "" ;
6867 $scope . makeSearch ( ) ;
6968 }
7069
71- $scope . withoutClear = function ( ) {
70+ $scope . withoutClear = function ( ) {
7271 $scope . search . without = "" ;
7372 $scope . makeSearch ( ) ;
7473 }
7574
76- $scope . clearAll = function ( ) {
75+ $scope . clearAll = function ( ) {
7776 $scope . search . words = "" ;
7877 $scope . search . phrase = "" ;
7978 $scope . search . anyWords = "" ;
@@ -86,13 +85,13 @@ searchApp
8685 $http . get ( baseUrl + 'GetSimilar/' + $scope . search . words )
8786 . then ( function ( response ) {
8887 $scope . searchItems = response . data . entities ;
88+
8989 if ( angular . isDefined ( $scope . searchItems ) )
90- if ( $scope . searchItems . length != 0 ) {
90+ if ( $scope . searchItems . length != 0 )
9191 if ( ( $scope . searchItems [ 0 ] . value == " " ) || ( $scope . search . words == "" ) )
92- $scope . inputToggle = false ;
92+ $scope . inputToggle = false ;
9393 else
94- $scope . inputToggle = true ;
95- }
94+ $scope . inputToggle = true ;
9695 } ) ;
9796 $scope . inputToggle = false ;
9897 }
0 commit comments