diff options
author | Unknwon <u@gogs.io> | 2015-09-06 10:56:31 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-09-06 10:56:31 -0400 |
commit | edc99bc8a4691d09cd42804fd0530c352201340e (patch) | |
tree | 837e4b978fc35a4905f7961bf9d26d5ed6124846 /public/js | |
parent | 80701d45bbe333f1bdef4673fae43df131b2222f (diff) | |
download | gitea-edc99bc8a4691d09cd42804fd0530c352201340e.tar.gz gitea-edc99bc8a4691d09cd42804fd0530c352201340e.zip |
new org options UI
Diffstat (limited to 'public/js')
-rw-r--r-- | public/js/gogs.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/public/js/gogs.js b/public/js/gogs.js index f8d9de662c..a49ea653fb 100644 --- a/public/js/gogs.js +++ b/public/js/gogs.js @@ -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(); });
\ No newline at end of file |