diff options
Diffstat (limited to 'web_src/js/features/repo-migration.js')
-rw-r--r-- | web_src/js/features/repo-migration.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/web_src/js/features/repo-migration.js b/web_src/js/features/repo-migration.js index c317c7245c..ee2ec01943 100644 --- a/web_src/js/features/repo-migration.js +++ b/web_src/js/features/repo-migration.js @@ -1,4 +1,5 @@ import $ from 'jquery'; +import {hideElem, showElem, toggleElem} from '../utils/dom.js'; const $service = $('#service_type'); const $user = $('#auth_username'); @@ -18,7 +19,7 @@ export function initRepoMigration() { $pass.on('keyup', () => {checkItems(false)}); $token.on('keyup', () => {checkItems(true)}); $mirror.on('change', () => {checkItems(true)}); - $('#lfs_settings_show').on('click', () => { $lfsEndpoint.show(); return false }); + $('#lfs_settings_show').on('click', () => { showElem($lfsEndpoint); return false }); $lfs.on('change', setLFSSettingsVisibility); const $cloneAddr = $('#clone_addr'); @@ -57,6 +58,6 @@ function checkItems(tokenAuth) { function setLFSSettingsVisibility() { const visible = $lfs.is(':checked'); - $lfsSettings.toggle(visible); - $lfsEndpoint.hide(); + toggleElem($lfsSettings, visible); + hideElem($lfsEndpoint); } |