Hi!
I have Jira Server runnig as service on my server. Scriptrunner documentation says modify your setenv.sh (or .bat) in order to add resource dir. For service-type installation I've guessed I had to edit service properties and added same line into Java options in server properties window:

Script file contents:
(function ($) {
$(function () {
AJS.dialog2.on("show", function (e) {
var targetId = e.target.id;
if (targetId == "sr-dialog") {
var someDialog = AJS.dialog2(e.target);
$(e.target).find("#dialog-ok-button").click(function (e) {
e.preventDefault();
someDialog.hide();
someDialog.remove();
});
// etc
}
});
});
})(AJS.$);(also from documentation page)
Install WebResource page looks ok:

But nothing happens when I click OK button in that dialog window?
What might be the problem here?