aboutsummaryrefslogtreecommitdiff
path: root/public/js/gogs.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/js/gogs.js')
-rw-r--r--public/js/gogs.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/public/js/gogs.js b/public/js/gogs.js
index 12373d50..41e1c55e 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