Skip to content
This repository has been archived by the owner on Sep 12, 2018. It is now read-only.

Commit

Permalink
Merge branch 'improve/issue-1824' of dlab/hive
Browse files Browse the repository at this point in the history
from pull-request 1318

* refs/heads/improve/issue-1824:
  IssueLabel: don't close dropdown on select at create/edit issue form

Reviewed-by: 이희구 <elf_hazard@nhn.com>
  • Loading branch information
doortts committed Nov 6, 2014
2 parents 2ad3cd1 + b544cd6 commit 1e991f3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/views/issue/create.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
</dd>
</dl>

@partial_select_label(IssueLabel.findByProject(project), null, "issue-option")
@partial_select_label(IssueLabel.findByProject(project), null, "issue-option", "data-close-on-select=false")
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/issue/edit.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
</dd>
</dl>

@partial_select_label(IssueLabel.findByProject(project), issue.getLabelIds, "issue-option")
@partial_select_label(IssueLabel.findByProject(project), issue.getLabelIds, "issue-option", "data-close-on-select=false")
</div>
</div>
</div>
Expand Down
7 changes: 4 additions & 3 deletions app/views/issue/partial_select_label.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
**@
@(labels:List[models.IssueLabel], selectedLabelIds:Set[Long] = null, wrapperCSSClassName:String = "")
@(labels:List[models.IssueLabel], selectedLabelIds:Set[Long] = null,
wrapperCSSClassName:String = "", additionalAttr:String = "")

@if(!labels.isEmpty){
<dl class="@wrapperCSSClassName">
Expand All @@ -27,9 +28,9 @@
</dt>
<dd>
<select name="labelIds" multiple="multiple" data-search="labelIds"
data-toggle="select2" data-format="issuelabel" data-allow-clear="true" data-close-on-select="true"
data-toggle="select2" data-format="issuelabel" data-allow-clear="true"
data-dropdown-css-class="issue-labels" data-container-css-class="issue-labels bordered fullsize"
data-placeholder="@Messages("label.select")">
data-placeholder="@Messages("label.select")" @additionalAttr>
<option></option>
@labels.groupBy(_.category).map {
case (category, labels) => {
Expand Down

0 comments on commit 1e991f3

Please sign in to comment.