aboutsummaryrefslogtreecommitdiffstats
path: root/public/ng/js
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-08-01 00:06:19 -0400
committerUnknwon <joe2010xtmf@163.com>2014-08-01 00:06:19 -0400
commitdabf5b057c358655d8635ed6ec8666660abeb92b (patch)
tree7f87b42eef48d6d0ac3f52bcbf856f4c5439551c /public/ng/js
parent7bbf644dd5eaca77c3e8df57419180486bda0fc2 (diff)
downloadgitea-dabf5b057c358655d8635ed6ec8666660abeb92b.tar.gz
gitea-dabf5b057c358655d8635ed6ec8666660abeb92b.zip
Finish new migrate page
Diffstat (limited to 'public/ng/js')
-rw-r--r--public/ng/js/gogs.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/public/ng/js/gogs.js b/public/ng/js/gogs.js
index ae2e8712b4..a861255e3e 100644
--- a/public/ng/js/gogs.js
+++ b/public/ng/js/gogs.js
@@ -59,7 +59,7 @@ var Gogs = {};
Gogs.renderMarkdown = function () {
var $md = $('.markdown');
var $pre = $md.find('pre > code').parent();
- $pre.addClass('prettyprint linenums');
+ $pre.addClass('prettyprint');
prettyPrint();
// Set anchor.
@@ -166,11 +166,17 @@ function initRepoCreate() {
console.log("set repo owner to uid :", uid, $(this).text().trim());
}
});
+
+ $('#auth-button').click(function (e) {
+ $('#repo-migrate-auth').slideToggle('fast');
+ e.preventDefault();
+ })
+ console.log('initRepoCreate');
}
$(document).ready(function () {
initCore();
- if ($('#repo-create-form').length) {
+ if ($('#repo-create-form').length || $('#repo-migrate-form').length) {
initRepoCreate();
}