]> source.dussan.org Git - gitea.git/commitdiff
public/ng: fix auto-completion #832
authorUnknwon <joe2010xtmf@163.com>
Sun, 1 Feb 2015 13:46:53 +0000 (08:46 -0500)
committerUnknwon <joe2010xtmf@163.com>
Sun, 1 Feb 2015 13:46:53 +0000 (08:46 -0500)
gogs.go
public/js/app.js
public/ng/js/gogs.js
templates/.VERSION

diff --git a/gogs.go b/gogs.go
index bdd3a8211c88aea2f09f362638e05b61e8ed92d7..423d3019075ea379fb871112aa29c4fcd399681d 100644 (file)
--- a/gogs.go
+++ b/gogs.go
@@ -17,7 +17,7 @@ import (
        "github.com/gogits/gogs/modules/setting"
 )
 
-const APP_VER = "0.5.12.0131 Beta"
+const APP_VER = "0.5.12.0201 Beta"
 
 func init() {
        runtime.GOMAXPROCS(runtime.NumCPU())
index 23b629e3e15cfb1141b03b58655314d723e44ecc..61539148e9b417fe1a2c1ad3e683e72991cd93ea 100644 (file)
@@ -1052,22 +1052,6 @@ function initRepoSetting() {
             return;
         }
         Gogits.getUsers($this.val(), $this.next());
-        /*$.ajax({
-         url: '/api/v1/users/search?q=' + $this.val(),
-         dataType: "json",
-         success: function (json) {
-         if (json.ok && json.data.length) {
-         var html = '';
-         $.each(json.data, function (i, item) {
-         html += '<li><img src="' + item.avatar + '">' + item.username + '</li>';
-         });
-         $this.next().toggleShow();
-         $this.next().find('ul').html(html);
-         } else {
-         $this.next().toggleHide();
-         }
-         }
-         });*/
     }).on('focus', function () {
         if (!$(this).val()) {
             $(this).next().toggleHide();
index ff38bda9d6c0764b4ef59671d2650a25e47f7258..f0bb76330de579579115b82774e1ec05ef255d64 100644 (file)
@@ -608,7 +608,7 @@ function initTeamMembersList() {
             $ul.toggleShow();
         }
     }).next().next().find('ul').on("click", 'li', function () {
-        $('#org-team-members-add').val($(this).text());
+        $('#org-team-members-add').val($(this).find('.username').text());
         $ul.toggleHide();
     });
 }
index ab97c4a157283cbd6abd64039350b9d35d03f788..6e3c63ed8513a46c1f2d7963e29ba09b36f11450 100644 (file)
@@ -1 +1 @@
-0.5.12.0131 Beta
\ No newline at end of file
+0.5.12.0201 Beta
\ No newline at end of file