Feature #14339
closed
  
        
        Added by Daniel Felix over 12 years ago.
        Updated almost 12 years ago.
        
  
  
  
  Description
  
  Hi there,
	in our company, we are using many users per project. This list could be a mess, even if it is sorted by first/lastname.
	I created a patch which hides the watchers by default if they reach a given limit. 
The patch provides also some javascripts for a quickfilter of the watcher list.
	Maybe you want to take a look at it.
	Best regards,
Daniel
   
 
  
  Files
  
 
  
  
    
    
    
    +1
	Works better with additional filter to remove class 'visible'
function findWatchers(checking,searchtext){
  if(checking.text().toLowerCase().indexOf(searchtext) > -1){
    checking.removeClass("hidden").addClass("visible");
  }
}
$(document).ready(function(){
  $('#watchers_filter').keyup(function(e){
    var searchtext = $(this).val().toLowerCase();
    var elements = $('#watchers_inputs > label');
    elements.not('.hidden').addClass('hidden');
    elements.filter('.visible').removeClass('visible'); // <- inserted line
    elements.each(function(){
      findWatchers($(this),searchtext);
    })
  });
  $('#mark_all_watchers').click(function(){
    $('#watchers_inputs > label').not('.hidden').children('input:checkbox:not(:checked)').attr('checked','checked');
  });
});
 
     
   
  
  
    
    
    
    Yes this would be good through. :-)
 
     
   
  
  
    
    
    
    
       - Related to Patch #15833: Watchers checkboxes are now being hidden by default added
 
    
    
     
   
  
  
    
    
    
    
       - Assignee set to Jean-Philippe Lang
 
    
    Having a watcher search field on the issue form (for members) and an other when clicking "Search for watchers" (for all users) is a bit awkward IMHO.
	When there are many members, another solution would be to simply not display the checkboxes by default on the issue form and let the user search for watchers through the modal window. And maybe improve this windows by adding an option "members/all users" and displaying members only by default. What do you think?
 
     
   
  
  
    
    
    
    Yes this would be good too. But the new issue view is quite confusing if there is a project with 100+ Users. :-)
 
     
   
  
  
    
    
    
    
       - Status changed from New to Closed
 
       - Resolution set to Duplicate
 
    
    I'm closing it as a dup of #8562. Now, the default checkbox are not displayed if there are more than 20 members.
 
     
   
  
  
    
    
    
    
       - Is duplicate of Feature #8562: Watchers list too big in new issue form added
 
    
    
     
   
  
 
  
  
 
Also available in:  Atom
  PDF