diff options
author | Unknwon <u@gogs.io> | 2015-08-31 13:36:31 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-31 13:36:31 +0800 |
commit | cb381078ffa9f9a6178110be304dfcac5715e323 (patch) | |
tree | 36752dfc8604d3d0bfa8f5edf6f0f3773f1163cd /public/js | |
parent | c6b039c6f96762709af109613b5262ea061e25b8 (diff) | |
download | gitea-cb381078ffa9f9a6178110be304dfcac5715e323.tar.gz gitea-cb381078ffa9f9a6178110be304dfcac5715e323.zip |
finish new repo options page
Diffstat (limited to 'public/js')
-rw-r--r-- | public/js/gogs.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/public/js/gogs.js b/public/js/gogs.js index 12373d50ac..41e1c55ed8 100644 --- a/public/js/gogs.js +++ b/public/js/gogs.js @@ -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 |