Bug 154086 Want /css to display current css setting

patch by neil@parkwaycc.co.uk r=rginda
This commit is contained in:
timeless%mac.com 2002-06-25 14:32:39 +00:00
parent 4ee2866875
commit 6a327f073c
2 changed files with 18 additions and 18 deletions

View File

@ -1093,25 +1093,25 @@ function cli_icommand (e)
client.onInputCSS =
function cli_icss (e)
{
if (!e.inputData)
return false;
e.inputData = stringTrim(e.inputData);
if (e.inputData)
{
e.inputData = stringTrim(e.inputData);
if (e.inputData.search(/^light$/i) != -1)
e.inputData = "chrome://chatzilla/skin/output-light.css";
else if (e.inputData.search(/^dark$/i) != -1)
e.inputData = "chrome://chatzilla/skin/output-dark.css";
else if (e.inputData.search(/^default$/i) != -1)
e.inputData = "chrome://chatzilla/skin/output-default.css";
else if (e.inputData.search(/^none$/i) != -1)
e.inputData = "chrome://chatzilla/content/output-base.css";
if (e.inputData.search(/^light$/i) != -1)
e.inputData = "chrome://chatzilla/skin/output-light.css";
else if (e.inputData.search(/^dark$/i) != -1)
e.inputData = "chrome://chatzilla/skin/output-dark.css";
else if (e.inputData.search(/^default$/i) != -1)
e.inputData = "chrome://chatzilla/skin/output-default.css";
else if (e.inputData.search(/^none$/i) != -1)
e.inputData = "chrome://chatzilla/content/output-base.css";
client.currentObject.display (getMsg("cli_icss", e.inputData), "INFO");
frames[0].document.location.href =
"chrome://chatzilla/content/outputwindow.html?" + e.inputData;
client.DEFAULT_STYLE = e.inputData;
}
frames[0].document.location.href =
"chrome://chatzilla/content/outputwindow.html?" + e.inputData;
client.DEFAULT_STYLE = e.inputData;
client.currentObject.display (getMsg("cli_icss", client.DEFAULT_STYLE), "INFO");
return true;
}

View File

@ -51,8 +51,8 @@ clientHelp=Make the ``*client*'' view current. If the ``*client*'' view has bee
commandsUsage=[<pattern>]
commandsHelp=Lists all command names matching <pattern>, or all command names if pattern is not specified.
cssUsage=light | dark | default | none | <url>
cssHelp=Sets the CSS file used for output. See the the ChatZilla homepage at <http://www.mozilla.org/projects/rt-messaging/chatzilla/> for more information on how to style ChatZilla.
cssUsage=[light | dark | default | none | <url>]
cssHelp=Sets or displays the CSS file used for output. See the the ChatZilla homepage at <http://www.mozilla.org/projects/rt-messaging/chatzilla/> for more information on how to style ChatZilla.
ctcpUsage=<target> <code> [<params>]
ctcpHelp=Sends the CTCP code <code> to the target (user or channel) <target>. If <params> are specified they are sent along as well.