Feature #14339
closedShortened issue watcher
0%
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
Related issues
Updated by Todd Hambley over 11 years ago
+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'); }); });
Updated by Daniel Felix almost 11 years ago
- Related to Patch #15833: Watchers checkboxes are now being hidden by default added
Updated by Jean-Philippe Lang almost 11 years ago
- 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?
Updated by Daniel Felix almost 11 years ago
Yes this would be good too. But the new issue view is quite confusing if there is a project with 100+ Users. :-)
Updated by Jean-Philippe Lang almost 11 years ago
- 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.
Updated by Jean-Philippe Lang almost 11 years ago
- Is duplicate of Feature #8562: Watchers list too big in new issue form added