diff options
author | Unknwon <u@gogs.io> | 2015-08-10 00:37:42 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-10 00:37:42 +0800 |
commit | a79586cc545594d8876438e2497c9408945748b2 (patch) | |
tree | 689da38141f2e3dc2b33a15132f5eb3116915b00 /public/js/gogs.js | |
parent | 590c464c56c993c461f10470926a96448f4f7d00 (diff) | |
parent | 8a3ee795d2d069bbb57b3d134367078c8e8391d5 (diff) | |
download | gitea-a79586cc545594d8876438e2497c9408945748b2.tar.gz gitea-a79586cc545594d8876438e2497c9408945748b2.zip |
Merge branch 'develop' of github.com:gogits/gogs into feature/pull_request2
# Conflicts:
# modules/bindata/bindata.go
# public/css/gogs.min.css
# templates/repo/header.tmpl
Diffstat (limited to 'public/js/gogs.js')
-rw-r--r-- | public/js/gogs.js | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/public/js/gogs.js b/public/js/gogs.js index 864dfbb994..1c6f3ade0f 100644 --- a/public/js/gogs.js +++ b/public/js/gogs.js @@ -43,6 +43,15 @@ function initRepository() { // Labels if ($('.repository.labels').length > 0) { + // Create label + var $new_label_panel = $('.new-label.segment'); + $('.new-label.button').click(function () { + $new_label_panel.show(); + }); + $('.new-label.segment .cancel').click(function () { + $new_label_panel.hide(); + }); + $('.color-picker').each(function () { $(this).minicolors(); }); @@ -53,8 +62,7 @@ function initRepository() { }); $('.edit-label-button').click(function () { $('#label-modal-id').val($(this).data('id')); - $('#label-modal-title').val($(this).data('title')); - $('#label-modal-color').val($(this).data('color')) + $('.edit-label .new-label-input').val($(this).data('title')); $('.minicolors-swatch-color').css("background-color", $(this).data('color')); $('.edit-label.modal').modal({ onApprove: function () { |