revised files received from Ben Goodger

This commit is contained in:
morse%netscape.com 1999-09-18 19:54:28 +00:00
Родитель 7e9dd9c640
Коммит 5408f9e1eb
3 изменённых файлов: 79 добавлений и 65 удалений

Просмотреть файл

@ -82,3 +82,11 @@ tree treechildren > treeitem > treerow[selectedrow=true] > treecell > a:link {
tree treechildren > treeitem > treerow[selectedrow ~= true] > treecell > a:hover { tree treechildren > treeitem > treerow[selectedrow ~= true] > treecell > a:hover {
color: #FFFFFF; color: #FFFFFF;
} }
input.dispcell {
border: none;
background-color: #CCCCDD;
height: 12px;
font-family: tahoma;
font-size: 10px;
}

Просмотреть файл

@ -185,20 +185,22 @@ function ViewCookieSelected(node)
dtypecell.appendChild(content); dtypecell.appendChild(content);
continue; continue;
} }
var row = document.getElementById(rows[i]); var field = document.getElementById(rows[i]);
if(row.hasChildNodes())
row.removeChild(row.lastChild);
// TODO: put the actual values into borderless TEXT FIELDS so they don't overrun
// and so that their values can be copied.
var cell = document.createElement("html:td");
var content = props[i]; var content = props[i];
var text = document.createTextNode(content); field.value = content;
cell.appendChild(text);
row.appendChild(cell);
if(rows[i] == "ifl_expires") break; if(rows[i] == "ifl_expires") break;
} }
} }
function UpdateCookieView()
{
ctree = document.getElementById("cookietree");
if (ctree.selectedItems.length > 0) {
var node = ctree.selectedItems[0];
ViewCookieSelected(node);
}
}
// function : <CookieViewer.js>::DeleteCookieSelected(); // function : <CookieViewer.js>::DeleteCookieSelected();
// purpose : deletes all the cookies that are selected // purpose : deletes all the cookies that are selected
function DeleteCookieSelected() { function DeleteCookieSelected() {
@ -215,7 +217,7 @@ function DeleteCookieSelected() {
for(k = 0; k < rows.length; k++) for(k = 0; k < rows.length; k++)
{ {
var row = document.getElementById(rows[k]); var row = document.getElementById(rows[k]);
row.removeChild(row.lastChild); row.setAttribute("value","");
} }
} }
} }

Просмотреть файл

@ -31,7 +31,7 @@
<!DOCTYPE window SYSTEM "chrome://wallet/locale/CookieViewer.dtd" > <!DOCTYPE window SYSTEM "chrome://wallet/locale/CookieViewer.dtd" >
<window id="cookieviewer" <window id="cookieviewer"
width="400" height="400" width="400" height="420"
title="&windowtitle.label;" title="&windowtitle.label;"
xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
@ -43,59 +43,58 @@
<tabcontrol flex="100%" align="vertical"> <tabcontrol flex="100%" align="vertical">
<tabbox> <tabbox>
<tab>&tab.cookiesonsystem.label;</tab> <tab onclick="UpdateCookieView();">&tab.cookiesonsystem.label;</tab>
<tab>&tab.bannedservers.label;</tab> <tab>&tab.bannedservers.label;</tab>
</tabbox> </tabbox>
<tabpanel align="horizontal" flex="100%"> <tabpanel align="horizontal" style="width: 400px;">
<box class="tabpanel" id="system" flex="100%" align="vertical"> <box class="tabpanel" id="system" flex="100%" align="vertical">
<box><html:div>&div.cookiesonsystem.label;</html:div></box> <box><html:div>&div.cookiesonsystem.label;</html:div></box>
<spring style="height: 10px;"/> <spring style="height: 10px;"/>
<tree id="cookietree" flex="100%" style="height: 150px;" align="vertical" onclick="ViewCookieSelected(event.target.parentNode.parentNode)"> <html:div style="width: 380px;">
<treecol width="30%"/> <tree id="cookietree" style="height: 150px; width: 380px;" align="vertical" onclick="ViewCookieSelected(event.target.parentNode.parentNode)">
<treecol width="70%"/> <treecol width="30%"/>
<treehead> <treecol width="70%"/>
<treerow> <treehead>
<treecell>&treehead.cookiedomain.label;</treecell> <treerow>
<treecell>&treehead.cookiename.label;</treecell> <treecell>&treehead.cookiedomain.label;</treecell>
</treerow> <treecell>&treehead.cookiename.label;</treecell>
</treehead> </treerow>
<treechildren id="cookielist"/> </treehead>
</tree> <treechildren id="cookielist"/>
</tree>
</html:div>
<spring style="height: 5px;"/> <spring style="height: 5px;"/>
<html:fieldset style="border: 2px groove #CCCCDD;"> <html:fieldset style="border: 2px groove #CCCCDD;">
<html:legend>&treehead.infoselected.label;</html:legend> <html:legend>&treehead.infoselected.label;</html:legend>
<box align="horizontal">
<!-- labels --> <!-- labels -->
<html:table> <html:div flex="100%">
<html:tr> <html:table width="100%" cellpadding="0" cellspacing="0" border="0">
<html:td>&props.name.label;</html:td> <html:tr>
</html:tr> <html:td width="55%">&props.name.label;</html:td>
<html:tr> <html:td><html:input id="ifl_name" type="text" flex="100%" class="dispcell"/></html:td>
<html:td>&props.value.label;</html:td> </html:tr>
</html:tr> <html:tr>
<html:tr> <html:td>&props.value.label;</html:td>
<html:td>&props.domain.label;</html:td> <html:td><html:input id="ifl_value" type="text" flex="100%" class="dispcell"/></html:td>
</html:tr> </html:tr>
<html:tr> <html:tr>
<html:td>&props.path.label;</html:td> <html:td id="ifl_domaintype">&props.domain.label;</html:td>
</html:tr> <html:td><html:input id="ifl_domain" type="text" flex="100%" class="dispcell"/></html:td>
<html:tr> </html:tr>
<html:td>&props.secure.label;</html:td> <html:tr>
</html:tr> <html:td>&props.path.label;</html:td>
<html:tr> <html:td><html:input id="ifl_path" type="text" flex="100%" class="dispcell"/></html:td>
<html:td>&props.expires.label;</html:td> </html:tr>
</html:tr> <html:tr>
</html:table> <html:td>&props.secure.label;</html:td>
<!-- values --> <html:td><html:input id="ifl_secure" type="text" flex="100%" class="dispcell"/></html:td>
<html:table> </html:tr>
<html:tr id="ifl_name"/> <html:tr>
<html:tr id="ifl_value"/> <html:td>&props.expires.label;</html:td>
<html:tr id="ifl_domain"/> <html:td><html:input id="ifl_expires" type="text" flex="100%" class="dispcell"/></html:td>
<html:tr id="ifl_path"/> </html:tr>
<html:tr id="ifl_secure"/> </html:table>
<html:tr id="ifl_expires"/> </html:div>
</html:table>
</box>
</html:fieldset> </html:fieldset>
<spring flex="5%"/> <spring flex="5%"/>
<box align="horizontal"> <box align="horizontal">
@ -106,15 +105,17 @@
<box class="tabpanel" id="servers" flex="100%" align="vertical"> <box class="tabpanel" id="servers" flex="100%" align="vertical">
<html:div>&div.bannedservers.label;</html:div> <html:div>&div.bannedservers.label;</html:div>
<spring flex="5%"/> <spring flex="5%"/>
<tree id="permissionstree" flex="100%" style="height: 150px;" align="vertical"> <html:div flex="100%">
<treehead> <tree id="permissionstree" style="height: 280px; width: 380px;" align="vertical">
<treerow> <treehead>
<treecell>&treehead.sitename.label;</treecell> <treerow>
<treecell>&treehead.status.label;</treecell> <treecell>&treehead.sitename.label;</treecell>
</treerow> <treecell>&treehead.status.label;</treecell>
</treehead> </treerow>
<treechildren id="permissionslist"/> </treehead>
</tree> <treechildren id="permissionslist"/>
</tree>
</html:div>
<spring style="height: 5px;"/> <spring style="height: 5px;"/>
<box align="horizontal"> <box align="horizontal">
<titledbutton value="&removepermission.label;" onclick="DeletePermissionSelected();"/> <titledbutton value="&removepermission.label;" onclick="DeletePermissionSelected();"/>
@ -125,7 +126,10 @@
</tabcontrol> </tabcontrol>
<!-- from dialogOverlay.xul --> <!-- from dialogOverlay.xul -->
<box id="okCancelButtons"/> <box align="horizontal">
<spring flex="100%"/>
<box id="okCancelButtons"/>
</box>
<popup id="cancannot"> <popup id="cancannot">
<menu> <menu>