Project

General

Profile

Actions

Feature #14339

closed

Shortened issue watcher

Added by Daniel Felix over 11 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Normal
Category:
Issues
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Duplicate

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

jquery_function.diff (902 Bytes) jquery_function.diff jquery function for searching the watchers Daniel Felix, 2013-06-24 15:52
struct_and_translations.diff (43.5 KB) struct_and_translations.diff structural changes on issues/new.hmtl.erb and translations Daniel Felix, 2013-06-24 15:52
redmine_watcher_search.png (5.15 KB) redmine_watcher_search.png Screenshot after patch apply Daniel Felix, 2013-06-24 15:54

Related issues

Related to Redmine - Patch #15833: Watchers checkboxes are now being hidden by defaultClosed

Actions
Is duplicate of Redmine - Feature #8562: Watchers list too big in new issue formClosedJean-Philippe Lang2011-06-08

Actions
Actions #1

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');
  });
});

Actions #2

Updated by Daniel Felix over 11 years ago

Yes this would be good through. :-)

Actions #3

Updated by Daniel Felix almost 11 years ago

  • Related to Patch #15833: Watchers checkboxes are now being hidden by default added
Actions #4

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?

Actions #5

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. :-)

Actions #6

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.

Actions #7

Updated by Jean-Philippe Lang almost 11 years ago

  • Is duplicate of Feature #8562: Watchers list too big in new issue form added
Actions

Also available in: Atom PDF