-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #257 from NeetigyaPod/feat/remove-inline-handlers-…
…validate feat:remove-inline onclick handlers for validate button
- Loading branch information
Showing
3 changed files
with
24 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/main/resources/jenkins/security/plugins/ldap/validation/validateButton.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
Behaviour.specify(".ldap-validate-button-reference-holder", 'ldap-validate', 0, function (e) { | ||
var url = e.getAttribute('data-fullurl'); | ||
var attr = e.getAttribute('data-attributes') | ||
var id = e.getAttribute('data-id'); | ||
var button = document.getElementById(id); | ||
button.onclick = function(el) { | ||
ldapValidateButton(url,attr,this,id); | ||
return false; | ||
} | ||
}); |
7 changes: 7 additions & 0 deletions
7
src/main/resources/jenkins/security/plugins/ldap/validation/validateButtonOnClick.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
Behaviour.specify(".ldap-validate-input-button-reference-holder", 'ldap-validate', 0, function (e) { | ||
var validateinp = document.getElementById("ldap-validate-input"); | ||
validateinp.onclick = function(el) { | ||
return false; | ||
} | ||
}); |