summaryrefslogtreecommitdiffstats
path: root/public/js/app.js
diff options
context:
space:
mode:
authorFuXiaoHei <fuxiaohei@hexiaz.com>2014-03-25 18:44:37 +0800
committerFuXiaoHei <fuxiaohei@hexiaz.com>2014-03-25 18:44:37 +0800
commit2a2f025388b2f47cff4162adc207af2ba68d64d9 (patch)
treef3f3f732f5bcf9f1a74cac5723ff5c4eccc0fe99 /public/js/app.js
parent6e33e54e71cdb6a100b9048bd6d9567fea2e7c91 (diff)
downloadgitea-2a2f025388b2f47cff4162adc207af2ba68d64d9.tar.gz
gitea-2a2f025388b2f47cff4162adc207af2ba68d64d9.zip
change css name style
Diffstat (limited to 'public/js/app.js')
-rw-r--r--public/js/app.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/public/js/app.js b/public/js/app.js
index f98fd03f82..0973398a50 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();
}
});