| Lines 149-155
          $(document).ready(function () {
      
      
        Link Here | 
        
          | 149 |         var search_field_name = $(line).find('input[data-id="search_field_name"]').val(); | 149 |         var search_field_name = $(line).find('input[data-id="search_field_name"]').val(); | 
        
          | 150 |         let already_exists = dt.data().filter((row, idx) => row[0]['@data-order'] === search_field_name); | 150 |         let already_exists = dt.data().filter((row, idx) => row[0]['@data-order'] === search_field_name); | 
        
          | 151 |         if ( already_exists.length ) { | 151 |         if ( already_exists.length ) { | 
          
            
              | 152 |             alert(__("Search field '%s' already exists".format(search_field_name))); | 152 |             alert(__("Search field '%s' already exists").format(search_field_name)); | 
        
          | 153 |             return; | 153 |             return; | 
        
          | 154 |         } | 154 |         } | 
        
          | 155 |         if (search_field_name.length > 0) { | 155 |         if (search_field_name.length > 0) { | 
  
    | Lines 171-177
          $(document).ready(function () {
      
      
        Link Here | 
        
          | 171 |         let dt_data = dt.data(); | 171 |         let dt_data = dt.data(); | 
        
          | 172 |         let already_exists = dt_data.filter((row, idx) => row[1] === search_field_name); | 172 |         let already_exists = dt_data.filter((row, idx) => row[1] === search_field_name); | 
        
          | 173 |         if ( already_exists.length ) { | 173 |         if ( already_exists.length ) { | 
          
            
              | 174 |             alert(__("Facet '%s' already exists".format(search_field_name))); | 174 |             alert(__("Facet '%s' already exists").format(search_field_name)); | 
        
          | 175 |             return; | 175 |             return; | 
        
          | 176 |         } | 176 |         } | 
        
          | 177 |         if (search_field_name.length > 0) { | 177 |         if (search_field_name.length > 0) { | 
            
              | 178 | -  |  |  |