Skip to content

Commit

Permalink
Fix scrollback ID issue (#1330)
Browse files Browse the repository at this point in the history
  • Loading branch information
KVonGit authored Dec 31, 2024
1 parent 8625f9b commit 72b653f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
11 changes: 7 additions & 4 deletions PlayerController/playercore.js
Original file line number Diff line number Diff line change
Expand Up @@ -799,13 +799,16 @@ function showScrollback() {
addText(scrollbackDivString);
var scrollbackDialog = $("#scrollback-dialog").dialog({
autoOpen: false,
width: $(window).width(),
height: $(window).height(),
width: (window.innerWidth || document.documentElement.clientWidth ||
document.body.clientWidth) - 100,
height: (window.innerHeight|| document.documentElement.clientHeight||
document.body.clientHeight) - 100,
title: "Scrollback",
buttons: {
Ok: function () {
$(this).dialog("close");
$(this).remove();
$("#scrollback-dialog,#scrollbackdata").remove();
},
Print: function () {
printScrollbackDiv();
Expand All @@ -820,7 +823,7 @@ function showScrollback() {
setTimeout(function () {
$("#scrollbackdata a").addClass("disabled");
}, 1);
};
}

function printScrollbackDiv() {
var iframe = document.createElement('iframe');
Expand All @@ -830,7 +833,7 @@ function printScrollbackDiv() {
document.body.removeChild(iframe);
$("#scrollback-dialog").dialog("close");
$("#scrollback-dialog").remove();
};
}

function keyPressCode(e) {
var keynum
Expand Down
11 changes: 7 additions & 4 deletions WebPlayer/playercore.js
Original file line number Diff line number Diff line change
Expand Up @@ -799,13 +799,16 @@ function showScrollback() {
addText(scrollbackDivString);
var scrollbackDialog = $("#scrollback-dialog").dialog({
autoOpen: false,
width: $(window).width(),
height: $(window).height(),
width: (window.innerWidth || document.documentElement.clientWidth ||
document.body.clientWidth) - 100,
height: (window.innerHeight|| document.documentElement.clientHeight||
document.body.clientHeight) - 100,
title: "Scrollback",
buttons: {
Ok: function () {
$(this).dialog("close");
$(this).remove();
$("#scrollback-dialog,#scrollbackdata").remove();
},
Print: function () {
printScrollbackDiv();
Expand All @@ -820,7 +823,7 @@ function showScrollback() {
setTimeout(function () {
$("#scrollbackdata a").addClass("disabled");
}, 1);
};
}

function printScrollbackDiv() {
var iframe = document.createElement('iframe');
Expand All @@ -830,7 +833,7 @@ function printScrollbackDiv() {
document.body.removeChild(iframe);
$("#scrollback-dialog").dialog("close");
$("#scrollback-dialog").remove();
};
}

function keyPressCode(e) {
var keynum
Expand Down

0 comments on commit 72b653f

Please sign in to comment.