mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 22:57:58 +01:00
merge use of "[Help]" and "[No Name]" in the status line for the internal help
page and about:blank
This commit is contained in:
@@ -206,7 +206,7 @@ vimperator.help = function(section, easter) //{{{
|
||||
|
||||
var fulldoc = '<?xml version="1.0"?>\n' +
|
||||
'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\n "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n' +
|
||||
'<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">\n<head>\n<title>Vimperator help</title>\n' +
|
||||
'<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">\n<head>\n<title>Vimperator Help</title>\n' +
|
||||
// XXX: stylesheet broken here? Have to add it in the vimperator.xul file
|
||||
'<link rel="stylesheet" href="chrome://vimperator/content/help.css" type="text/css"/>\n' +
|
||||
'</head>\n<body>\n<div class="main">\n' +
|
||||
|
||||
@@ -1081,6 +1081,17 @@ function StatusLine() //{{{
|
||||
if (!url || typeof url != "string")
|
||||
url = vimperator.buffer.URL;
|
||||
|
||||
// make it even more vim-like
|
||||
if (url == "about:blank")
|
||||
{
|
||||
var title = vimperator.buffer.title;
|
||||
|
||||
if (title == "Vimperator Help")
|
||||
url = "[Help]";
|
||||
else if (!title)
|
||||
url = "[No Name]";
|
||||
}
|
||||
|
||||
url_widget.value = url;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user