ssh keys operation page ui

This commit is contained in:
FuXiaoHei 2014-03-10 16:54:52 +08:00
parent 0d9b2f3860
commit 46687f391c
8 changed files with 237 additions and 11 deletions

View file

@ -3,12 +3,7 @@ var Gogits = {
};
(function ($) {
Gogits.showTooltips = function () {
$("body").tooltip({
selector: "[data-toggle=tooltip]"
//container: "body"
});
};
Gogits.showTab = function (selector, index) {
if (!index) {
index = 0;
@ -27,11 +22,29 @@ var Gogits = {
};
$form.validate(options);
};
// ----- init elements
Gogits.initModals = function () {
var modals = $("[data-toggle=modal]");
if (modals.length < 1) {
return;
}
$.each(modals, function (i, item) {
$(item).modal("hide");
});
};
Gogits.initTooltips = function () {
$("body").tooltip({
selector: "[data-toggle=tooltip]"
//container: "body"
});
};
})(jQuery);
function initCore() {
Gogits.showTooltips();
Gogits.initTooltips();
Gogits.initModals();
}
function initRegister() {