Skip to content

Commit bed2e0a

Browse files
committed
Make the ref placeholder dependent on provider
1 parent 7b2000d commit bed2e0a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

binderhub/static/js/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,12 @@ function updateRepoText() {
101101
}
102102
$("#repository").attr('placeholder', text);
103103
$("label[for=repository]").text(text);
104-
$("#ref").attr('placeholder', 'main');
104+
if (provider === "gh") {
105+
$("#ref").attr('placeholder', 'main');
106+
}
107+
else {
108+
$("#ref").attr('placeholder', tag_text);
109+
}
105110
$("label[for=ref]").text(tag_text);
106111
}
107112

0 commit comments

Comments
 (0)