-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CSP support for
DockerManagementServer
(#1107)
* CSP support for `DockerManagementServer` * Spotless
- Loading branch information
Showing
5 changed files
with
21 additions
and
23 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
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
18 changes: 18 additions & 0 deletions
18
src/main/resources/com/nirima/jenkins/plugins/docker/DockerManagementServer/docker-manage.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,18 @@ | ||
function stop(theId) { | ||
var input = document.getElementById('stopId'); | ||
if (input != null) { | ||
input.value = theId; | ||
} | ||
|
||
var form = document.getElementById('control'); | ||
form.submit(); | ||
} | ||
|
||
document.addEventListener('DOMContentLoaded', () => { | ||
const stopContainerButtons = document.querySelectorAll('#control .stop-container'); | ||
stopContainerButtons.forEach((button) => | ||
button.addEventListener('click', () => { | ||
stop(button.dataset.id); | ||
}), | ||
); | ||
}); |
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
This file was deleted.
Oops, something went wrong.