gitlab-org--gitlab-foss/app/views
Fatih Acet b01a830afe Merge branch '24877-bulk-edit-only-keeps-common-labels-when-searching' into 'master'
Improve bulk assignment

This MR improves current implementation of Label dropdown when used for bulk assignment on issuable pages (/:namespace/:project/issues, /:namespace/:project/merge_requests)

Previously this dropdown relied on `<input>` tags to get its active items and also to calculate items with indeterminate state.

Relying on `<input>` tags is not enough when we want to set/get multiple states on a dropdown.

For this case we want to get/set:

- Marked items 
- Unmarked items that were initially marked
- Unmarked items that were initially indeterminate
- Items with indeterminate state.

This MR makes the Label dropdown to save its own state as `data` so it will be easy to get and set whatever state we want no matter if the dropdown is filtering which is the issue that I initially wanted to solve as you can see in the following gif.

**Before** 
![2016-12-07_11.44.48](/uploads/cb697161b8b39cdee72fdbb95a531100/2016-12-07_11.44.48.gif)

**After**
![2016-12-07_11.32.43](/uploads/338255a302de0dd1367474f33232d2a3/2016-12-07_11.32.43.gif)

As you can see in the first gif the `bug` label is removed from the selected issues but the `enhancement` label should set but the `critical` should be kept. This is fixed on the next gif.

Fixes #24877

See merge request !7765
2016-12-15 21:03:33 +00:00
..
abuse_report_mailer
abuse_reports
admin Remove white space between nav items 2016-12-14 10:32:14 -05:00
award_emoji Disabled award emoji button when user is not logged in 2016-11-22 10:25:09 +00:00
ci Improve build status specs contexts descriptions 2016-12-14 11:36:19 +01:00
dashboard 25617 Fix placeholder color of todo filters 2016-12-14 13:39:57 -08:00
devise Merge branch '15081-wrong-login-tab-ldap-frontend' into 'master' 2016-12-09 09:17:41 +00:00
discussions Use assigned variables better 2016-11-28 19:40:48 +00:00
doorkeeper
email_rejection_mailer
emojis
errors Fix appearance in error pages 2016-11-29 11:44:07 -07:00
events Removed data-user-is view code 2016-11-25 13:45:34 +01:00
explore Shift emojis and icons styles into framework 2016-12-14 20:01:01 -05:00
groups removes extra if check 2016-12-12 13:02:08 +06:00
help Stop replacing $your_email with the user's email 2016-12-09 17:32:05 +01:00
import
invites Alert user when logged in user email is not the same as the invitation 2016-11-29 11:29:07 -02:00
issues
kaminari/gitlab
koding
layouts Merge branch '23305-leave-project-and-leave-group-should-be-buttons' into 'master' 2016-12-09 19:27:09 +00:00
notify Introduce Ci::Stage, right now this is artificial object that is build dynamically. 2016-12-06 14:13:21 +01:00
profiles remove left_align setting from notification setting dropdown in favor of a pure css solution 2016-12-10 00:21:47 -06:00
projects Merge branch '24877-bulk-edit-only-keeps-common-labels-when-searching' into 'master' 2016-12-15 21:03:33 +00:00
repository_check_mailer Add support for nested groups to admin routing 2016-12-11 10:30:10 +02:00
search fix snippets reference id in search results (should be $ not #) 2016-12-10 00:57:23 -06:00
sent_notifications
shared Merge branch 'clean-no-undef' into 'master' 2016-12-15 00:52:46 +00:00
sherlock
snippets Remove pages/snippets css 2016-12-14 20:02:10 -05:00
u2f
users Update avatar container name so it doesnt conflict with other image containers 2016-11-03 12:26:09 -05:00