You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: web_src/js/features/repo-settings.js
+3-3
Original file line number
Diff line number
Diff line change
@@ -22,12 +22,12 @@ export function initRepoSettingsCollaboration() {
22
22
data.append('mode',value);
23
23
awaitPOST(el.getAttribute('data-url'),{data});
24
24
}catch{
25
-
$text.text('(error)');// prevent from misleading users when error occurs
25
+
$text[0].textContent='(error)';// prevent from misleading users when error occurs
26
26
el.setAttribute('data-last-value',lastValue);
27
27
}
28
28
},
29
29
onChange(_value,text,_$choice){
30
-
$text.text(text);// update the text when using keyboard navigating
30
+
$text[0].textextContent=text;// update the text when using keyboard navigating
31
31
},
32
32
onHide(){
33
33
// set to the really selected value, defer to next tick to make sure `action` has finished its work because the calling order might be onHide -> action
@@ -36,7 +36,7 @@ export function initRepoSettingsCollaboration() {
0 commit comments