зеркало из https://github.com/mozilla/pjs.git
Bug 299458 - Fix inline buttons and link style.
ChatZilla Only. r=samuel p=silver@warwickcompsoc.co.uk (James Ross)
This commit is contained in:
Родитель
d75681a682
Коммит
c2a48332f8
|
@ -2090,7 +2090,7 @@ function cmdGotoURL(e)
|
|||
{
|
||||
var ary = e.url.match(/^x-cz-command:(.*)$/i);
|
||||
e.sourceObject.frame.contentWindow.location.href =
|
||||
"javascript:void(view.dispatch('" + decodeURI(ary[1]) + "'))";
|
||||
"javascript:void(view.dispatch('" + decodeURI(ary[1]) + "', null, true))";
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -166,6 +166,18 @@
|
|||
|
||||
body.chatzilla-body { /* The topmost container in the ChatZilla */
|
||||
margin: 0px 0px 0px 0px; /* output window. */
|
||||
background: #FFFFFF;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
a:link {
|
||||
color: #0000EE;
|
||||
}
|
||||
a:active {
|
||||
color: #EE0000;
|
||||
}
|
||||
a:visited {
|
||||
color: #551A8B;
|
||||
}
|
||||
|
||||
/* links */
|
||||
|
|
|
@ -1213,6 +1213,7 @@ function insertInlineButton(text, containerTag, data)
|
|||
var link = document.createElementNS("http://www.w3.org/1999/xhtml", "a");
|
||||
link.setAttribute("href", "x-cz-command:" + encodeURI(command));
|
||||
link.setAttribute("title", title);
|
||||
link.setAttribute("class", "chatzilla-link");
|
||||
link.appendChild(document.createTextNode(label));
|
||||
|
||||
containerTag.appendChild(document.createTextNode("["));
|
||||
|
|
Загрузка…
Ссылка в новой задаче