forked from forgejo/forgejo
change css name style
This commit is contained in:
parent
6e33e54e71
commit
2a2f025388
43 changed files with 214 additions and 210 deletions
|
@ -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();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue