зеркало из https://github.com/mozilla/gecko-dev.git
Removing ^M.
This commit is contained in:
Родитель
354fcc0505
Коммит
169f7cf785
|
@ -167,17 +167,17 @@ function Init()
|
||||||
{
|
{
|
||||||
debug("append traiing slash to FTP directory URL\n");
|
debug("append traiing slash to FTP directory URL\n");
|
||||||
baseURI += "/";
|
baseURI += "/";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Lets also enable the loggin window.
|
// Lets also enable the loggin window.
|
||||||
|
|
||||||
var node = document.getElementById("main-splitter");
|
var node = document.getElementById("main-splitter");
|
||||||
node.setAttribute("hidden", false);
|
node.setAttribute("hidden", false);
|
||||||
|
|
||||||
node = document.getElementById("logbox");
|
node = document.getElementById("logbox");
|
||||||
node.setAttribute("hidden", false);
|
node.setAttribute("hidden", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (baseURI && (baseURI.indexOf("file://") != 0)) {
|
if (baseURI && (baseURI.indexOf("file://") != 0)) {
|
||||||
// Note: DON'T add the HTTPIndex datasource into the tree
|
// Note: DON'T add the HTTPIndex datasource into the tree
|
||||||
// for file URLs, only do it for FTP/Gopher/etc URLs; the "rdf:files"
|
// for file URLs, only do it for FTP/Gopher/etc URLs; the "rdf:files"
|
||||||
|
@ -225,7 +225,7 @@ function DoUnload()
|
||||||
var tree = document.getElementById("tree");
|
var tree = document.getElementById("tree");
|
||||||
if (tree)
|
if (tree)
|
||||||
{
|
{
|
||||||
tree.database.RemoveDatasource(HTTPIndex);
|
tree.database.RemoveDatasource(HTTPIndex);
|
||||||
tree.database.RemoveObserver(RDF_observer);
|
tree.database.RemoveObserver(RDF_observer);
|
||||||
debug("Directory: removed observer\n");
|
debug("Directory: removed observer\n");
|
||||||
}
|
}
|
||||||
|
@ -392,28 +392,28 @@ function BeginDragTree ( event )
|
||||||
|
|
||||||
return(!dragStarted);
|
return(!dragStarted);
|
||||||
}
|
}
|
||||||
|
|
||||||
function scrollDown()
|
function scrollDown()
|
||||||
{
|
{
|
||||||
window.frames[0].scrollTo(0, window.frames[0].document.height);
|
window.frames[0].scrollTo(0, window.frames[0].document.height);
|
||||||
}
|
}
|
||||||
|
|
||||||
function OnFTPControlLog( server, msg )
|
function OnFTPControlLog( server, msg )
|
||||||
{
|
{
|
||||||
var logdoc = frames[0].document;
|
var logdoc = frames[0].document;
|
||||||
var logdocDiv = logdoc.getElementById("logboxDiv");
|
var logdocDiv = logdoc.getElementById("logboxDiv");
|
||||||
var div = document.createElementNS("http://www.w3.org/1999/xhtml",
|
var div = document.createElementNS("http://www.w3.org/1999/xhtml",
|
||||||
"html:div");
|
"html:div");
|
||||||
|
|
||||||
if (server)
|
if (server)
|
||||||
div.setAttribute("class", "server");
|
div.setAttribute("class", "server");
|
||||||
else
|
else
|
||||||
div.setAttribute("class", "client");
|
div.setAttribute("class", "client");
|
||||||
|
|
||||||
div.appendChild (document.createTextNode(msg));
|
div.appendChild (document.createTextNode(msg));
|
||||||
|
|
||||||
logdocDiv.appendChild(div);
|
logdocDiv.appendChild(div);
|
||||||
|
|
||||||
scrollDown();
|
scrollDown();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче