From 101b5d08f7013ab2dc9e4fbb06e9b18eb0e1fcf7 Mon Sep 17 00:00:00 2001 From: matitaweb Date: Thu, 8 Sep 2011 12:58:06 +0000 Subject: [PATCH] Matitaweb: changes to file selection dialog box. --- matitaB/matita/matitaFilesystem.ml | 4 ++-- matitaB/matita/matitaweb.js | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/matitaB/matita/matitaFilesystem.ml b/matitaB/matita/matitaFilesystem.ml index 43fb985b9..47e2ff599 100644 --- a/matitaB/matita/matitaFilesystem.ml +++ b/matitaB/matita/matitaFilesystem.ml @@ -74,7 +74,7 @@ let html_of_library uid = let id = newid () in let name = Filename.basename lpath in let name = if name <> "." then name else "cic:/matita" in - "\n" ^ + "\n" ^ "\n" ^ name ^ "
\n" ^ "\n" ^ @@ -82,7 +82,7 @@ let html_of_library uid = in let leaf lpath = "\n" ^ - "" ^ + "" ^ (Filename.basename lpath) ^ "
" in diff --git a/matitaB/matita/matitaweb.js b/matitaB/matita/matitaweb.js index 86481a1ed..c0b945842 100644 --- a/matitaB/matita/matitaweb.js +++ b/matitaB/matita/matitaweb.js @@ -179,7 +179,7 @@ function debug(txt) // but google chrome's innerText is, in a sense, "write only" // what should we do? // logarea.innerText = txt + "\n" + logarea.innerText; - logarea.innerHTML = txt + "\n" + logarea.innerHTML; + logarea.innerHTML = txt; // + "\n" + logarea.innerText; } function listhd(l) @@ -508,7 +508,9 @@ function gotoBottom() if (len > 0) { // len0 = unlocked.innerHTML.length; unescaped = unlocked.innerHTML.html_to_matita(); - parsedtxt = parsed.childNodes[0].nodeValue; + // not working in mozilla + // parsedtxt = parsed.childNodes[0].nodeValue; + parsedtxt = parsed.childNodes[0].wholeText; //parsedtxt = unescaped.substr(0,len); unparsedtxt = unescaped.substr(len); lockedbackup += parsedtxt; @@ -612,7 +614,7 @@ function openFile() if (is_defined(xml)) { lockedbackup = ""; locked.innerHTML = lockedbackup; - unlocked.innerHTML = xml.documentElement.textContent; + unlocked.innerHTML = xml.documentElement.wholeText; } else { debug("file open failed"); } -- 2.39.2