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
Remove jQuery .attr from the repository settings (#30018)
- Switched from jQuery `.attr` to plain javascript `getAttribute` and
`setAttribute`
- Tested the collaborator access mode change, team search box, and
branch protection form. They all work as before
---------
Signed-off-by: Yarden Shoham <[email protected]>
$text.text('(error)');// prevent from misleading users when error occurs
26
-
$dropdown.attr('data-last-value',lastValue);
26
+
el.setAttribute('data-last-value',lastValue);
27
27
}
28
28
},
29
29
onChange(_value,text,_$choice){
@@ -32,9 +32,9 @@ export function initRepoSettingsCollaboration() {
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
0 commit comments