Skip to content

Commit 5ec13ee

Browse files
Merge pull request #491 from rsandell/prototype_removal
Prepare for prototype removal
2 parents b83506d + cabf86d commit 5ec13ee

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/resources/com/cloudbees/plugins/credentials/CredentialsStoreAction/newDomain.jelly

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<f:form action="createDomain" method="POST" name="newDomain">
3434
<f:entry title="${%Domain Name}" help="/plugin/credentials/help/domain/name.html">
3535
<f:textbox id="name" field="name" onchange="updateOk(this.form)" onkeyup="updateOk(this.form)"/>
36-
<script>$('name').focus();</script>
36+
<script>document.getElementById('name').focus();</script>
3737
</f:entry>
3838
<f:entry title="${%Description}" help="/plugin/credentials/help/domain/description.html">
3939
<f:textarea name="description"/>
@@ -47,11 +47,11 @@
4747
</f:bottomButtonBar>
4848
</f:form>
4949
<script><![CDATA[
50-
var okButton = makeButton($('ok'), null);
50+
var okButton = makeButton(document.getElementById('ok'), null);
5151
5252
function updateOk(form) {
5353
function state() {
54-
return ($('name').value.length === 0);
54+
return (document.getElementById('name').value.length === 0);
5555
}
5656
5757
okButton.set('disabled', state(), false);

src/main/resources/lib/credentials/dialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ Behaviour.specify("#credentials-add-submit", 'credentials-dialog-add', 0, functi
33
});
44

55
Behaviour.specify("#credentials-add-abort", 'credentials-dialog-abort', 0, function (e) {
6-
e.onclick = (_) => window.credentials.dialog.hide();
6+
e.onclick = (_) => window.credentials.dialog.style.display = "none";
77
});

0 commit comments

Comments
 (0)