
IssueLabel: don't close dropdown on select at create/edit issue form
@b544cd6d3cfe99ecdc23fc828393d5cc815ad2c3
--- app/views/issue/create.scala.html
+++ app/views/issue/create.scala.html
... | ... | @@ -119,7 +119,7 @@ |
119 | 119 |
</dd> |
120 | 120 |
</dl> |
121 | 121 |
|
122 |
- @partial_select_label(IssueLabel.findByProject(project), null, "issue-option") |
|
122 |
+ @partial_select_label(IssueLabel.findByProject(project), null, "issue-option", "data-close-on-select=false") |
|
123 | 123 |
</div> |
124 | 124 |
</div> |
125 | 125 |
</div> |
--- app/views/issue/edit.scala.html
+++ app/views/issue/edit.scala.html
... | ... | @@ -157,7 +157,7 @@ |
157 | 157 |
</dd> |
158 | 158 |
</dl> |
159 | 159 |
|
160 |
- @partial_select_label(IssueLabel.findByProject(project), issue.getLabelIds, "issue-option") |
|
160 |
+ @partial_select_label(IssueLabel.findByProject(project), issue.getLabelIds, "issue-option", "data-close-on-select=false") |
|
161 | 161 |
</div> |
162 | 162 |
</div> |
163 | 163 |
</div> |
--- app/views/issue/partial_select_label.scala.html
+++ app/views/issue/partial_select_label.scala.html
... | ... | @@ -18,7 +18,8 @@ |
18 | 18 |
* See the License for the specific language governing permissions and |
19 | 19 |
* limitations under the License. |
20 | 20 |
**@ |
21 |
-@(labels:List[models.IssueLabel], selectedLabelIds:Set[Long] = null, wrapperCSSClassName:String = "") |
|
21 |
+@(labels:List[models.IssueLabel], selectedLabelIds:Set[Long] = null, |
|
22 |
+ wrapperCSSClassName:String = "", additionalAttr:String = "") |
|
22 | 23 |
|
23 | 24 |
@if(!labels.isEmpty){ |
24 | 25 |
<dl class="@wrapperCSSClassName"> |
... | ... | @@ -27,9 +28,9 @@ |
27 | 28 |
</dt> |
28 | 29 |
<dd> |
29 | 30 |
<select name="labelIds" multiple="multiple" data-search="labelIds" |
30 |
- data-toggle="select2" data-format="issuelabel" data-allow-clear="true" data-close-on-select="true" |
|
31 |
+ data-toggle="select2" data-format="issuelabel" data-allow-clear="true" |
|
31 | 32 |
data-dropdown-css-class="issue-labels" data-container-css-class="issue-labels bordered fullsize" |
32 |
- data-placeholder="@Messages("label.select")"> |
|
33 |
+ data-placeholder="@Messages("label.select")" @additionalAttr> |
|
33 | 34 |
<option></option> |
34 | 35 |
@labels.groupBy(_.category).map { |
35 | 36 |
case (category, labels) => { |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?