Skip to content

Commit

Permalink
Return whether a JS window is new or not when creating it
Browse files Browse the repository at this point in the history
  • Loading branch information
lkarlslund committed Jun 13, 2022
1 parent 420c6a3 commit dd304ce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/analyze/html/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function newwindow(id, title, content, height, width) {

// add the new one
if (mywindow.length == 0) {
itsnew = true;
itsnew = true;
// `< div class="window d-inline-block position-absolute shadow p-5 bg-dark border pointer-events-auto container-fluid window-front" id="window_${id}">

mywindow = $(
Expand Down Expand Up @@ -148,7 +148,6 @@ function newwindow(id, title, content, height, width) {
if (width) {
mywindow.width(width);
}

}

$('#title', mywindow).html(title);
Expand Down Expand Up @@ -177,6 +176,8 @@ function newwindow(id, title, content, height, width) {
win.addClass('window-front');
}
});

return itsnew;
}

function analyze(e) {
Expand Down

0 comments on commit dd304ce

Please sign in to comment.