diff --git a/rhodecode/templates/admin/gists/gist_index.mako b/rhodecode/templates/admin/gists/gist_index.mako --- a/rhodecode/templates/admin/gists/gist_index.mako +++ b/rhodecode/templates/admin/gists/gist_index.mako @@ -27,13 +27,13 @@ diff --git a/rhodecode/templates/admin/gists/gist_new.mako b/rhodecode/templates/admin/gists/gist_new.mako --- a/rhodecode/templates/admin/gists/gist_new.mako +++ b/rhodecode/templates/admin/gists/gist_new.mako @@ -65,11 +65,11 @@
- + ${_('Private Gist')} - + ${_('Public Gist')}
@@ -99,5 +99,14 @@ setCodeMirrorModeFromInput( modes_select, filename_selector, myCodeMirror, null); + setGistId = function(gistType) { + if (gistType === 'private') { + $('#gistid').removeAttr('disabled'); + } + else { + $('#gistid').val(''); + $('#gistid').attr('disabled', 'disabled') + } + }