mirror of
https://github.com/go-gitea/gitea
synced 2025-07-23 18:58:38 +00:00
new org options UI
This commit is contained in:
2
public/css/gogs.min.css
vendored
2
public/css/gogs.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -389,6 +389,26 @@ function initRepository() {
|
||||
}
|
||||
}
|
||||
|
||||
function initOrganization(){
|
||||
if ($('.organization').length == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Options
|
||||
if ($('.organization.settings.options').length > 0) {
|
||||
$('#org_name').keyup(function () {
|
||||
var $prompt_span = $('#org-name-change-prompt');
|
||||
if ($(this).val().toString().toLowerCase() != $(this).data('org-name').toString().toLowerCase()) {
|
||||
$prompt_span.show();
|
||||
} else {
|
||||
$prompt_span.hide();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
function initWebhook() {
|
||||
if ($('.new.webhook').length == 0) {
|
||||
return;
|
||||
@@ -524,5 +544,6 @@ $(document).ready(function () {
|
||||
initCommentForm();
|
||||
initInstall();
|
||||
initRepository();
|
||||
initOrganization();
|
||||
initWebhook();
|
||||
});
|
@@ -18,4 +18,11 @@
|
||||
&.new.org {
|
||||
#create-page-form;
|
||||
}
|
||||
|
||||
&.options {
|
||||
input {
|
||||
width: 50%!important;
|
||||
min-width: 300px;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user