forked from forgejo/forgejo
finish new repo options page
This commit is contained in:
parent
c6b039c6f9
commit
cb381078ff
7 changed files with 53 additions and 58 deletions
|
@ -182,6 +182,18 @@ function initRepository() {
|
|||
return;
|
||||
}
|
||||
|
||||
// Options
|
||||
if ($('.repository.settings.options').length > 0) {
|
||||
$('#repo_name').keyup(function () {
|
||||
var $prompt_span = $('#repo-name-change-prompt');
|
||||
if ($(this).val().toLowerCase() != $(this).data('repo-name').toLowerCase()) {
|
||||
$prompt_span.show();
|
||||
}else{
|
||||
$prompt_span.hide();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// Labels
|
||||
if ($('.repository.labels').length > 0) {
|
||||
// Create label
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue