summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-18 06:18:31 -0400
committerUnknwon <u@gogs.io>2015-09-18 06:18:31 -0400
commitd9c5b3bceef42f269e16c6d2f2b4a4ad29f7882d (patch)
tree7d0caaaa7d69d879b898c0086ba319f0cf886ef9 /public
parent86d3c5cbb3c8a500c08aa393a1b00aff754de31f (diff)
downloadgitea-d9c5b3bceef42f269e16c6d2f2b4a4ad29f7882d.tar.gz
gitea-d9c5b3bceef42f269e16c6d2f2b4a4ad29f7882d.zip
#1659 fix change label title resets color
Diffstat (limited to 'public')
-rw-r--r--public/js/gogs.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/public/js/gogs.js b/public/js/gogs.js
index 59cdf5d668..d38e8976f4 100644
--- a/public/js/gogs.js
+++ b/public/js/gogs.js
@@ -238,6 +238,7 @@ function initRepository() {
$('.edit-label-button').click(function () {
$('#label-modal-id').val($(this).data('id'));
$('.edit-label .new-label-input').val($(this).data('title'));
+ $('.edit-label .color-picker').val($(this).data('color'));
$('.minicolors-swatch-color').css("background-color", $(this).data('color'));
$('.edit-label.modal').modal({
onApprove: function () {