aboutsummaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-03-26 14:38:14 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-03-26 14:38:14 +0800
commit9dbc808c7b71fc97015346704bb3d3db4918aba0 (patch)
treef0d76b189a0137bcb455e548e52805787d680fa7 /public/js
parentf9024b3f43c700ae997c284458fcc1d0dfc2e9a7 (diff)
parent06cf878471af02376dfcd02b9781982a89c27a2a (diff)
Merge branch 'master' of github.com:gogits/gogs
Conflicts: models/repo.go modules/base/tool.go serve.go
Diffstat (limited to 'public/js')
-rw-r--r--public/js/app.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/public/js/app.js b/public/js/app.js
index f98fd03f..8b0e5cd6 100644
--- a/public/js/app.js
+++ b/public/js/app.js
@@ -111,6 +111,7 @@ var Gogits = {
};
Gogits.initTabs = function () {
var $tabs = $('[data-init=tabs]');
+ $tabs.tab("show");
$tabs.find("li:eq(0) a").tab("show");
};
// fix dropdown inside click
@@ -243,7 +244,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 +269,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 +304,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 +355,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();
}
});