File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
templates/repo/issue/labels Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 23
23
{{.i18n.Tr "repo.issues.label_modify"}}
24
24
</div>
25
25
<div class="content">
26
- <form class="ui edit-label form" action="{{$.Link}}/edit" method="post">
26
+ <form class="ui edit-label form ignore-dirty " action="{{$.Link}}/edit" method="post">
27
27
{{.CsrfTokenHtml}}
28
28
<input id="label-modal-id" name="id" type="hidden">
29
29
<div class="ui grid">
Original file line number Diff line number Diff line change @@ -163,12 +163,12 @@ function initLabelEdit() {
163
163
$ ( '.minicolors-swatch-color' ) . css ( 'background-color' , color_hex ) ;
164
164
} ) ;
165
165
$ ( '.edit-label-button' ) . on ( 'click' , function ( ) {
166
- $ ( '.color-picker' ) . minicolors ( 'value' , $ ( this ) . data ( 'color' ) ) ;
166
+ $ ( '.edit-label . color-picker' ) . minicolors ( 'value' , $ ( this ) . data ( 'color' ) ) ;
167
167
$ ( '#label-modal-id' ) . val ( $ ( this ) . data ( 'id' ) ) ;
168
168
$ ( '.edit-label .new-label-input' ) . val ( $ ( this ) . data ( 'title' ) ) ;
169
169
$ ( '.edit-label .new-label-desc-input' ) . val ( $ ( this ) . data ( 'description' ) ) ;
170
170
$ ( '.edit-label .color-picker' ) . val ( $ ( this ) . data ( 'color' ) ) ;
171
- $ ( '.minicolors-swatch-color' ) . css ( 'background-color' , $ ( this ) . data ( 'color' ) ) ;
171
+ $ ( '.edit-label . minicolors-swatch-color' ) . css ( 'background-color' , $ ( this ) . data ( 'color' ) ) ;
172
172
$ ( '.edit-label.modal' ) . modal ( {
173
173
onApprove ( ) {
174
174
$ ( '.edit-label.form' ) . trigger ( 'submit' ) ;
You can’t perform that action at this time.
0 commit comments