diff options
author | Unknwon <u@gogs.io> | 2015-08-15 16:03:20 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-15 16:03:20 +0800 |
commit | e633425f276a0b95702e2a12b3d5f0d217e76f6d (patch) | |
tree | d2c4133eebdb6c1d8c436287d123e9dc9c0af6ec /public/js | |
parent | b35d7eee31e8a33e314d54514854efaeee9d46b1 (diff) |
#1180 and #1250: migration
Diffstat (limited to 'public/js')
-rw-r--r-- | public/js/gogs.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/public/js/gogs.js b/public/js/gogs.js index 4bae588d..049e454b 100644 --- a/public/js/gogs.js +++ b/public/js/gogs.js @@ -118,7 +118,6 @@ function initCommentForm() { $(this).removeClass('selected active') }); - if (has_update_action) { updateIssueMeta($menu.data('update-url'), '', ''); } @@ -173,6 +172,15 @@ function initRepository() { return; } + // New migrate + if ($('.repository.new.migrate').length > 0) { + // Clear browser autocomplete. + if ($('#auth_username').data('need-clear')) { + $('#auth_username').val(''); + $('#auth_password').val(''); + } + } + // Labels if ($('.repository.labels').length > 0) { // Create label |