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 2323 {{.i18n.Tr "repo.issues.label_modify"}}
2424 </div>
2525 <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">
2727 {{.CsrfTokenHtml}}
2828 <input id="label-modal-id" name="id" type="hidden">
2929 <div class="ui grid">
Original file line number Diff line number Diff line change @@ -163,12 +163,12 @@ function initLabelEdit() {
163163 $ ( '.minicolors-swatch-color' ) . css ( 'background-color' , color_hex ) ;
164164 } ) ;
165165 $ ( '.edit-label-button' ) . on ( 'click' , function ( ) {
166- $ ( '.color-picker' ) . minicolors ( 'value' , $ ( this ) . data ( 'color' ) ) ;
166+ $ ( '.edit-label . color-picker' ) . minicolors ( 'value' , $ ( this ) . data ( 'color' ) ) ;
167167 $ ( '#label-modal-id' ) . val ( $ ( this ) . data ( 'id' ) ) ;
168168 $ ( '.edit-label .new-label-input' ) . val ( $ ( this ) . data ( 'title' ) ) ;
169169 $ ( '.edit-label .new-label-desc-input' ) . val ( $ ( this ) . data ( 'description' ) ) ;
170170 $ ( '.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' ) ) ;
172172 $ ( '.edit-label.modal' ) . modal ( {
173173 onApprove ( ) {
174174 $ ( '.edit-label.form' ) . trigger ( 'submit' ) ;
You can’t perform that action at this time.
0 commit comments