diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-25 06:54:22 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-25 06:54:22 -0400 |
commit | e95be2cb3e1e320ecd86f0743acaeeb76f50e3e5 (patch) | |
tree | 746b1ab1ab5626fb20ddd04121c29a951a6f84b3 /public/js | |
parent | eeb793524f2da4afdca017b585d9cfb6e9628e85 (diff) | |
parent | 94ac5ebb9f100c77da02b56961119a25cd9e6d20 (diff) |
Merge branch 'master' of github.com:gogits/gogs
Conflicts:
conf/app.ini
Diffstat (limited to 'public/js')
-rw-r--r-- | public/js/app.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/public/js/app.js b/public/js/app.js index f98fd03f..0973398a 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -243,7 +243,7 @@ function initCore() { function initRegister() { $.getScript("/js/jquery.validate.min.js", function () { - Gogits.validateForm("#gogs-login-card", { + Gogits.validateForm("#login-card", { rules: { "username": { required: true, @@ -268,7 +268,7 @@ function initRegister() { } function initUserSetting() { - $('#gogs-ssh-keys .delete').confirmation({ + $('#ssh-keys .delete').confirmation({ singleton: true, onConfirm: function (e, $this) { Gogits.ajaxDelete("", {"id": $this.data("del")}, function (json) { @@ -303,7 +303,7 @@ function initRepository() { // watching script (function () { - var $watch = $('#gogs-repo-watching'), + var $watch = $('#repo-watching'), watchLink = $watch.data("watch"), unwatchLink = $watch.data("unwatch"); $watch.on('click', '.to-watch',function () { @@ -354,14 +354,14 @@ function initRepository() { (function ($) { $(function () { initCore(); - var body = $("#gogs-body"); + var body = $("#body"); if (body.data("page") == "user-signup") { initRegister(); } if (body.data("page") == "user") { initUserSetting(); } - if ($('.gogs-repo-nav').length) { + if ($('.repo-nav').length) { initRepository(); } }); |