aboutsummaryrefslogtreecommitdiff
path: root/public/ng/js/gogs.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/ng/js/gogs.js')
-rw-r--r--public/ng/js/gogs.js15
1 files changed, 9 insertions, 6 deletions
diff --git a/public/ng/js/gogs.js b/public/ng/js/gogs.js
index eba1744b..3578cd7c 100644
--- a/public/ng/js/gogs.js
+++ b/public/ng/js/gogs.js
@@ -210,7 +210,7 @@ var Gogs = {};
if (json.ok && json.data.length) {
var html = '';
$.each(json.data, function (i, item) {
- html += '<li><a><img src="' + item.avatar + '">' + item.username + '</a></li>';
+ html += '<li><a><img src="' + item.avatar_url + '">' + item.username + '</a></li>';
});
$target.html(html);
$target.toggleShow();
@@ -230,7 +230,7 @@ var Gogs = {};
if (json.ok && json.data.length) {
var html = '';
$.each(json.data, function (i, item) {
- html += '<li><a><span class="octicon octicon-repo"></span> ' + item.repolink + '</a></li>';
+ html += '<li><a><span class="octicon octicon-repo"></span> ' + item.full_name + '</a></li>';
});
$target.html(html);
$target.toggleShow();
@@ -300,8 +300,11 @@ function initCore() {
$.magnificPopup.close();
});
- // Collapse.
+ // Plugins.
$('.collapse').hide();
+ $('.tipsy-tooltip').tipsy({
+ fade: true
+ });
}
function initUserSetting() {
@@ -329,9 +332,9 @@ function initUserSetting() {
$profile_form.submit();
});
- // Show add SSH key panel.
- $('#ssh-add').click(function () {
- $('#user-ssh-add-form').removeClass("hide");
+ // Show panels.
+ $('.show-form-btn').click(function () {
+ $($(this).data('target-form')).removeClass("hide");
});
// Confirmation of delete account.