diff options
author | Christoph (Sheogorath) Kern | 2018-10-09 09:14:06 +0200 |
---|---|---|
committer | GitHub | 2018-10-09 09:14:06 +0200 |
commit | 3817d580dd8735cd530f1604f9416a30168dbf70 (patch) | |
tree | 322d71573b563e1cafd852cd852aef839eee4b95 /public | |
parent | 466dc9bc21305c51bd954eb19269485ea9d94bb5 (diff) | |
parent | 702f52f07c026adf07fc18d7a563763cde52f814 (diff) |
Merge pull request #1000 from micedre/fix-issue-986
Fix #986 : Visibility is now transmitted with gitlab V4 api
Diffstat (limited to 'public')
-rw-r--r-- | public/js/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/js/index.js b/public/js/index.js index 1330deac..3dd25fa6 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -1479,7 +1479,7 @@ $('#snippetExportModalConfirm').click(function () { file_name: $('#snippetExportModalFileName').val(), code: editor.getValue(), visibility_level: $('#snippetExportModalVisibility').val(), - visibility: $('#snippetExportModalVisibility').val() === 0 ? 'private' : ($('#snippetExportModalVisibility').val() === 10 ? 'internal' : '') + visibility: $('#snippetExportModalVisibility').val() === '0' ? 'private' : ($('#snippetExportModalVisibility').val() === '10' ? 'internal' : 'private') } if (!data.title || !data.file_name || !data.code || !data.visibility_level || !$('#snippetExportModalProjects').val()) return |