Skip to content

Commit bf72958

Browse files
committed
use action instead of onChange
1 parent 7c2273a commit bf72958

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web_src/js/features/repo-settings.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@ export function initRepoSettingsCollaboration() {
88
// Change collaborator access mode
99
const $dropdown = $('.page-content.repository .ui.access-mode.dropdown');
1010
$dropdown.dropdown({
11-
onChange(value) {
11+
action (_text, value) {
1212
$.post($dropdown.attr('data-url'), {
1313
_csrf: csrfToken,
1414
uid: $dropdown.attr('data-uid'),
1515
mode: value,
1616
});
17+
$dropdown.dropdown('hide');
1718
}
1819
});
1920
}

0 commit comments

Comments
 (0)