gitlab-org--gitlab-foss/app/views/projects
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
..
artifacts Removed soon-to-be un-needed project title additions from builds and environments 2016-11-09 12:23:21 +00:00
badges
blame change the date label to match the date used 2016-12-03 14:39:35 -07:00
blob Merge branch 'jej-22869' into 'security' 2016-11-28 21:25:18 -03:00
boards rewrite subscription javascript to accomodate new design 2016-11-30 17:15:25 -06:00
branches Update some more sort/filter dropdowns 2016-11-28 23:18:04 +01:00
builds Merge branch 'build-statuses' into 'master' 2016-12-14 12:34:22 +00:00
buttons Remove tags.scss 2016-12-06 08:08:01 -06:00
ci Merge branch 'build-statuses' into 'master' 2016-12-14 12:34:22 +00:00
commit Clean up commit copy to clipboard and make consistent 2016-12-12 13:16:52 -06:00
commits change the date label to match the date used 2016-12-03 14:39:35 -07:00
compare Fixed compare ellipsis messing with layout 2016-10-21 13:43:52 +01:00
container_registry
cycle_analytics Add custom copy for each empty stage 2016-11-21 17:26:19 -05:00
deploy_keys
deployments Merge branch '22191-delete-dynamic-envs-mr' into 'master' 2016-10-19 07:53:05 +00:00
diffs Merge branch 'hoopes/gitlab-ce-21027-add-diff-hunks-to-notification-emails' into 'master' 2016-11-29 04:11:15 +00:00
environments Replace play icon svg logic 2016-12-09 10:14:47 +00:00
find_file
forks Add nested groups support on data level 2016-12-08 11:47:16 +02:00
generic_commit_statuses Merge branch 'build-statuses' into 'master' 2016-12-14 12:34:22 +00:00
graphs Add flash containers and broadcast messages below subnav 2016-10-01 00:21:37 +03:00
group_links Updated JS based on review 2016-12-09 10:06:02 +00:00
hooks
imports Use 'Forking in progress' title when appropriate 2016-11-09 23:58:25 -05:00
issues Rename MergeRequest#pipeline to head_pipeline 2016-11-29 14:12:49 +01:00
labels Use label subject to calculate number of issues/mrs within the group 2016-10-31 23:27:49 -02:00
merge_requests Merge branch '24877-bulk-edit-only-keeps-common-labels-when-searching' into 'master' 2016-12-15 21:03:33 +00:00
milestones Add a starting date to milestones 2016-11-23 13:41:04 +02:00
network Fix bug of json request url 2016-11-07 20:44:15 +09:00
notes break comment "edited at" block out of the note-text element to prevent issues with inline text nodes 2016-12-12 13:03:22 -06:00
pipelines Remove white space between nav items 2016-12-14 10:32:14 -05:00
pipelines_settings Add excoveralls example 2016-12-05 13:52:58 -02:00
project_members Updated members dropdowns 2016-12-07 15:27:14 +00:00
protected_branches Create protected branches bundle 2016-10-20 12:03:30 -05:00
refs fix broken ajax for large repository trees (regression caused in !7208) 2016-11-18 13:52:07 -06:00
releases
repositories Enable CacheMarkdownField for the remaining models 2016-10-07 02:54:26 +01:00
runners Merge branch 'runners-paginate' into 'master' 2016-10-21 14:58:26 +00:00
services Frontend review changes 2016-11-21 22:11:21 +00:00
snippets Remove pages/snippets css 2016-12-14 20:02:10 -05:00
stage Revert some unneeded changes 2016-12-12 12:59:02 +01:00
tags Remove tags.scss 2016-12-06 08:08:01 -06:00
tree Tweak style and add back wording 2016-12-12 13:16:52 -06:00
triggers Add ref parameter for triggerring builds with gitlab webhook from other project. 2016-11-15 17:19:33 +03:00
variables Hide project variables values by default 2016-11-24 00:21:48 -08:00
wikis add special class in cases where sidebar toggle should exist in the margin 2016-11-30 15:22:43 -06:00
_activity.html.haml convert activities.js to es6 class syntax 2016-11-20 01:32:20 -06:00
_bitbucket_import_modal.html.haml
_commit_button.html.haml
_customize_workflow.html.haml Add visibility level to project repository 2016-10-17 18:12:18 -02:00
_errors.html.haml
_files.html.haml
_find_file_link.html.haml
_gitlab_import_modal.html.haml
_home_panel.html.haml Update avatar container name so it doesnt conflict with other image containers 2016-11-03 12:26:09 -05:00
_last_commit.html.haml Replace jQuery.timeago with timeago.js 2016-11-07 14:49:00 -06:00
_last_push.html.haml Add white background to create MR banner 2016-10-01 00:21:37 +03:00
_md_preview.html.haml
_merge_request_merge_settings.html.haml Remove wrong '.builds-feature' class from the MR settings fieldset 2016-12-07 12:42:09 +01:00
_merge_request_settings.html.haml Remove wrong '.builds-feature' class from the MR settings fieldset 2016-12-07 12:42:09 +01:00
_readme.html.haml WIP: Adds a default commit message when adding a README (#25167) 2016-12-02 12:04:03 -05:00
_wiki.html.haml Add visibility level to project repository 2016-10-17 18:12:18 -02:00
_zen.html.haml Loads GFM once for per page 2016-10-14 10:52:48 +01:00
activity.html.haml
edit.html.haml Merge branch '25324-change-housekeeping-btn-to-default' into 'master' 2016-12-09 23:24:12 +00:00
empty.html.haml WIP: Adds a default commit message when adding a README (#25167) 2016-11-30 13:41:18 -05:00
new.html.haml Fix project Visibility level selector not using default values 2016-11-10 14:41:03 -02:00
no_repo.html.haml
remove_fork.js.haml
show.atom.builder
show.html.haml 19205 Redesign group page header to match new navigation 2016-11-09 17:24:17 -08:00
transfer.js.haml
update.js.haml