Revert "Fix some stuff with ls() and cat"

This commit is contained in:
danielyxie
2018-02-16 15:03:16 -06:00
committed by GitHub
parent d37e8f1d5f
commit 1f5ab50b79
4 changed files with 5 additions and 24 deletions
+3 -11
View File
@@ -32,7 +32,7 @@ $(document).on('click', '.dialog-box-close-button', function( event ) {
var dialogBoxOpened = false;
function dialogBoxCreate(txt, preformatted) {
function dialogBoxCreate(txt) {
var container = document.createElement("div");
container.setAttribute("class", "dialog-box-container");
@@ -43,16 +43,8 @@ function dialogBoxCreate(txt, preformatted) {
closeButton.setAttribute("class", "dialog-box-close-button");
closeButton.innerHTML = "×"
var textE;
if (preformatted) {
// For text files as they are often computed data that
// shouldn't be wrapped and should retain tabstops.
textE = document.createElement("pre");
textE.innerHTML = txt;
} else {
textE = document.createElement("p");
textE.innerHTML = txt.replace(/(?:\r\n|\r|\n)/g, '<br>');
}
var textE = document.createElement("p");
textE.innerHTML = txt.replace(/(?:\r\n|\r|\n)/g, '<br>');
content.appendChild(closeButton);
content.appendChild(textE);