зеркало из https://github.com/mozilla/pjs.git
Address Book UI fixes: beta1 bug 25135 disable unused AB menu items, and 23200, 23893, 24063, 24073, 24076, 24300, 24379, 25426, removed <div> tags from <tree>s, and added multiple="true" to results pane tree. r=scottip
This commit is contained in:
Родитель
9e326fa03c
Коммит
153bbc5f08
|
@ -52,22 +52,22 @@ Rights Reserved.
|
|||
<box align="vertical" style="width:100%">
|
||||
<box align="horizontal" flex="100%">
|
||||
<spring flex="100%"/>
|
||||
<html:label for="FirstName">&FirstName.label;</html:label>
|
||||
<html:input type="text" id="FirstName" class="CardEdit" onkeyup="top.GenerateDisplayName()" />
|
||||
<html:label for="FirstName" class="textInput">&FirstName.label;</html:label>
|
||||
<html:input type="text" id="FirstName" class="CardEdit" onkeypress="top.GenerateDisplayName()" />
|
||||
</box>
|
||||
<box align="horizontal">
|
||||
<spring flex="100%"/>
|
||||
<html:label for="LastName">&LastName.label;</html:label>
|
||||
<html:input id="LastName" type="text" class="CardEdit" onkeyup="top.GenerateDisplayName()"/>
|
||||
<html:label for="LastName" class="textInput">&LastName.label;</html:label>
|
||||
<html:input id="LastName" type="text" class="CardEdit" onkeypress="top.GenerateDisplayName()"/>
|
||||
</box>
|
||||
<box align="horizontal">
|
||||
<spring flex="100%"/>
|
||||
<html:label for="DisplayName">&DisplayName.label;</html:label>
|
||||
<html:input id="DisplayName" type="text" class="CardEdit" onkeyup="top.DisplayNameChanged()"/>
|
||||
<html:label for="DisplayName" class="textInput">&DisplayName.label;</html:label>
|
||||
<html:input id="DisplayName" type="text" class="CardEdit" onkeypress="top.DisplayNameChanged()"/>
|
||||
</box>
|
||||
<box align="horizontal">
|
||||
<spring flex="100%"/>
|
||||
<html:label for="NickName">&NickName.label;</html:label>
|
||||
<html:label for="NickName" class="textInput">&NickName.label;</html:label>
|
||||
<html:input id="NickName" type="text" class="CardEdit"/>
|
||||
</box>
|
||||
</box>
|
||||
|
@ -81,12 +81,12 @@ Rights Reserved.
|
|||
<box align="vertical" style="width:100%">
|
||||
<box align="horizontal">
|
||||
<spring flex="100%"/>
|
||||
<html:label for="PrimaryEmail">&PrimaryEmail.label;</html:label>
|
||||
<html:label for="PrimaryEmail" class="textInput">&PrimaryEmail.label;</html:label>
|
||||
<html:input id="PrimaryEmail" type="text" class="CardEdit"/>
|
||||
</box>
|
||||
<box align="horizontal">
|
||||
<spring flex="100%"/>
|
||||
<html:label for="SecondEmail">&SecondEmail.label;</html:label>
|
||||
<html:label for="SecondEmail" class="textInput">&SecondEmail.label;</html:label>
|
||||
<html:input id="SecondEmail" type="text" class="CardEdit"/>
|
||||
</box>
|
||||
<box align="horizontal">
|
||||
|
@ -107,27 +107,27 @@ Rights Reserved.
|
|||
<box align="vertical" style="width:100%">
|
||||
<box align="horizontal" style="vertical-align:baseline">
|
||||
<spring flex="100%"/>
|
||||
<html:label for="WorkPhone" style="vertical-align:baseline">&WorkPhone.label;</html:label>
|
||||
<html:label for="WorkPhone" class="textInput">&WorkPhone.label;</html:label>
|
||||
<html:input id="WorkPhone" type="text" class="CardEdit" style="vertical-align:baseline"/>
|
||||
</box>
|
||||
<box align="horizontal">
|
||||
<spring flex="100%"/>
|
||||
<html:label for="HomePhone">&HomePhone.label;</html:label>
|
||||
<html:label for="HomePhone" class="textInput">&HomePhone.label;</html:label>
|
||||
<html:input id="HomePhone" type="text" class="CardEdit"/>
|
||||
</box>
|
||||
<box align="horizontal">
|
||||
<spring flex="100%"/>
|
||||
<html:label for="FaxNumber">&FaxNumber.label;</html:label>
|
||||
<html:label for="FaxNumber" class="textInput">&FaxNumber.label;</html:label>
|
||||
<html:input id="FaxNumber" type="text" class="CardEdit"/>
|
||||
</box>
|
||||
<box align="horizontal">
|
||||
<spring flex="100%"/>
|
||||
<html:label for="PagerNumber">&PagerNumber.label;</html:label>
|
||||
<html:label for="PagerNumber" class="textInput">&PagerNumber.label;</html:label>
|
||||
<html:input id="PagerNumber" type="text" class="CardEdit"/>
|
||||
</box>
|
||||
<box align="horizontal">
|
||||
<spring flex="100%"/>
|
||||
<html:label for="CellularNumber">&CellularNumber.label;</html:label>
|
||||
<html:label for="CellularNumber" class="textInput">&CellularNumber.label;</html:label>
|
||||
<html:input id="CellularNumber" type="text" class="CardEdit"/>
|
||||
</box>
|
||||
</box>
|
||||
|
@ -146,32 +146,32 @@ Rights Reserved.
|
|||
|
||||
<box align="horizontal">
|
||||
<spring flex="100%"/>
|
||||
<html:label for="HomeAddress">&HomeAddress.label;</html:label>
|
||||
<html:label for="HomeAddress" class="textInput">&HomeAddress.label;</html:label>
|
||||
<html:input type="text" id="HomeAddress" class="CardEdit"/>
|
||||
</box>
|
||||
<box align="horizontal">
|
||||
<spring flex="100%"/>
|
||||
<html:label for="HomeAddress2">&HomeAddress2.label;</html:label>
|
||||
<html:label for="HomeAddress2" class="textInput">&HomeAddress2.label;</html:label>
|
||||
<html:input type="text" id="HomeAddress2" class="CardEdit"/>
|
||||
</box>
|
||||
<box align="horizontal">
|
||||
<spring flex="100%"/>
|
||||
<html:label for="HomeCity">&HomeCity.label;</html:label>
|
||||
<html:label for="HomeCity" class="textInput">&HomeCity.label;</html:label>
|
||||
<html:input id="HomeCity" type="text" class="CardEdit"/>
|
||||
</box>
|
||||
<box align="horizontal">
|
||||
<spring flex="100%"/>
|
||||
<html:label for="HomeState">&HomeState.label;</html:label>
|
||||
<html:label for="HomeState" class="textInput">&HomeState.label;</html:label>
|
||||
<box class="CardEditWidth">
|
||||
<html:input id="HomeState" type="text" class="CardEdit" style="min-width:1em; width:8em"/>
|
||||
<spring flex="100%"/>
|
||||
<html:label for="HomeZipCode">&HomeZipCode.label;</html:label>
|
||||
<html:label for="HomeZipCode" class="textInput">&HomeZipCode.label;</html:label>
|
||||
<html:input id="HomeZipCode" type="text" class="CardEdit" style="min-width:1em; width:8em"/>
|
||||
</box>
|
||||
</box>
|
||||
<box align="horizontal">
|
||||
<spring flex="100%"/>
|
||||
<html:label for="HomeCountry">&HomeCountry.label;</html:label>
|
||||
<html:label for="HomeCountry" class="textInput">&HomeCountry.label;</html:label>
|
||||
<html:input id="HomeCountry" type="text" class="CardEdit"/>
|
||||
</box>
|
||||
</box>
|
||||
|
@ -186,47 +186,47 @@ Rights Reserved.
|
|||
|
||||
<box align="horizontal">
|
||||
<spring flex="100%"/>
|
||||
<html:label for="JobTitle">&JobTitle.label;</html:label>
|
||||
<html:label for="JobTitle" class="textInput">&JobTitle.label;</html:label>
|
||||
<html:input type="text" id="JobTitle" class="CardEdit"/>
|
||||
</box>
|
||||
<box align="horizontal">
|
||||
<spring flex="100%"/>
|
||||
<html:label for="Department">&Department.label;</html:label>
|
||||
<html:label for="Department" class="textInput">&Department.label;</html:label>
|
||||
<html:input type="text" id="Department" class="CardEdit"/>
|
||||
</box>
|
||||
<box align="horizontal">
|
||||
<spring flex="100%"/>
|
||||
<html:label for="Company">&Company.label;</html:label>
|
||||
<html:label for="Company" class="textInput">&Company.label;</html:label>
|
||||
<html:input type="text" id="Company" class="CardEdit"/>
|
||||
</box>
|
||||
<box align="horizontal">
|
||||
<spring flex="100%"/>
|
||||
<html:label for="WorkAddress">&WorkAddress.label;</html:label>
|
||||
<html:label for="WorkAddress" class="textInput">&WorkAddress.label;</html:label>
|
||||
<html:input type="text" id="WorkAddress" class="CardEdit"/>
|
||||
</box>
|
||||
<box align="horizontal">
|
||||
<spring flex="100%"/>
|
||||
<html:label for="WorkAddress2">&WorkAddress2.label;</html:label>
|
||||
<html:label for="WorkAddress2" class="textInput">&WorkAddress2.label;</html:label>
|
||||
<html:input type="text" id="WorkAddress2" class="CardEdit"/>
|
||||
</box>
|
||||
<box align="horizontal">
|
||||
<spring flex="100%"/>
|
||||
<html:label for="WorkCity">&WorkCity.label;</html:label>
|
||||
<html:label for="WorkCity" class="textInput">&WorkCity.label;</html:label>
|
||||
<html:input id="WorkCity" type="text" class="CardEdit"/>
|
||||
</box>
|
||||
<box align="horizontal">
|
||||
<spring flex="100%"/>
|
||||
<html:label for="WorkState">&WorkState.label;</html:label>
|
||||
<html:label for="WorkState" class="textInput">&WorkState.label;</html:label>
|
||||
<box class="CardEditWidth">
|
||||
<html:input id="WorkState" type="text" class="CardEdit" style="min-width:1em; width:8em"/>
|
||||
<spring flex="100%"/>
|
||||
<html:label for="WorkZipCode">&WorkZipCode.label;</html:label>
|
||||
<html:label for="WorkZipCode" class="textInput">&WorkZipCode.label;</html:label>
|
||||
<html:input id="WorkZipCode" type="text" class="CardEdit" style="min-width:1em; width:8em"/>
|
||||
</box>
|
||||
</box>
|
||||
<box align="horizontal">
|
||||
<spring flex="100%"/>
|
||||
<html:label for="WorkCountry">&WorkCountry.label;</html:label>
|
||||
<html:label for="WorkCountry" class="textInput">&WorkCountry.label;</html:label>
|
||||
<html:input id="WorkCountry" type="text" class="CardEdit"/>
|
||||
</box>
|
||||
</box>
|
||||
|
@ -241,7 +241,7 @@ Rights Reserved.
|
|||
|
||||
<box align="horizontal">
|
||||
<!--spring flex="100%"/-->
|
||||
<html:label for="WebPage1">&WebPage1.label;</html:label>
|
||||
<html:label for="WebPage1" class="textInput">&WebPage1.label;</html:label>
|
||||
<html:input type="text" id="WebPage1" class="CardEdit" flex="100%"/>
|
||||
</box>
|
||||
</box>
|
||||
|
@ -254,22 +254,22 @@ Rights Reserved.
|
|||
<box align="vertical" style="width:100%">
|
||||
<box align="horizontal" flex="100%">
|
||||
<spring flex="100%"/>
|
||||
<html:label for="Custom1">&Custom1.label;</html:label>
|
||||
<html:label for="Custom1" class="textInput">&Custom1.label;</html:label>
|
||||
<html:input type="text" id="Custom1" class="CardEdit"/>
|
||||
</box>
|
||||
<box align="horizontal" flex="100%">
|
||||
<spring flex="100%"/>
|
||||
<html:label for="Custom2">&Custom2.label;</html:label>
|
||||
<html:label for="Custom2" class="textInput">&Custom2.label;</html:label>
|
||||
<html:input type="text" id="Custom2" class="CardEdit"/>
|
||||
</box>
|
||||
<box align="horizontal" flex="100%">
|
||||
<spring flex="100%"/>
|
||||
<html:label for="Custom3">&Custom3.label;</html:label>
|
||||
<html:label for="Custom3" class="textInput">&Custom3.label;</html:label>
|
||||
<html:input type="text" id="Custom3" class="CardEdit"/>
|
||||
</box>
|
||||
<box align="horizontal" flex="100%">
|
||||
<spring flex="100%"/>
|
||||
<html:label for="Custom4">&Custom4.label;</html:label>
|
||||
<html:label for="Custom4" class="textInput">&Custom4.label;</html:label>
|
||||
<html:input type="text" id="Custom4" class="CardEdit"/>
|
||||
</box>
|
||||
</box>
|
||||
|
@ -279,7 +279,7 @@ Rights Reserved.
|
|||
<html:div style="font-weight: bold">&Notes.box;</html:div>
|
||||
</html:legend>
|
||||
|
||||
<box align="vertical" style="width:100%">
|
||||
<box align="vertical">
|
||||
<html:textarea id="Notes" rows="15"/>
|
||||
</box>
|
||||
</html:fieldset>
|
||||
|
|
|
@ -102,6 +102,7 @@ function DisplayCardViewPane(abNode)
|
|||
visible = cvSetCityStateZip(data.cvHomeCityStZip, card.homeCity, card.homeState, card.homeZipCode) || visible;
|
||||
visible = cvSetNode(data.cvHomeCountry, card.homeCountry) || visible;
|
||||
cvSetVisible(data.cvhHome, visible);
|
||||
cvSetVisible(data.cvbHome, visible);
|
||||
// Other section
|
||||
visible = cvSetNodeWithLabel(data.cvCustom1, zCustom1, card.custom1);
|
||||
visible = cvSetNodeWithLabel(data.cvCustom2, zCustom2, card.custom2) || visible;
|
||||
|
@ -109,6 +110,7 @@ function DisplayCardViewPane(abNode)
|
|||
visible = cvSetNodeWithLabel(data.cvCustom4, zCustom4, card.custom4) || visible;
|
||||
visible = cvSetNode(data.cvNotes, card.notes) || visible;
|
||||
cvSetVisible(data.cvhOther, visible);
|
||||
cvSetVisible(data.cvbOther, visible);
|
||||
// Phone section
|
||||
visible = cvSetNodeWithLabel(data.cvPhWork, zWork, card.workPhone);
|
||||
visible = cvSetNodeWithLabel(data.cvPhHome, zHome, card.homePhone) || visible;
|
||||
|
@ -116,6 +118,7 @@ function DisplayCardViewPane(abNode)
|
|||
visible = cvSetNodeWithLabel(data.cvPhCellular, zCellular, card.cellularNumber) || visible;
|
||||
visible = cvSetNodeWithLabel(data.cvPhPager, zPager, card.pagerNumber) || visible;
|
||||
cvSetVisible(data.cvhPhone, visible);
|
||||
cvSetVisible(data.cvbPhone, visible);
|
||||
// Work section
|
||||
visible = cvSetNode(data.cvJobTitle, card.jobTitle);
|
||||
visible = cvSetNode(data.cvDepartment, card.department) || visible;
|
||||
|
@ -125,6 +128,7 @@ function DisplayCardViewPane(abNode)
|
|||
visible = cvSetCityStateZip(data.cvWorkCityStZip, card.workCity, card.workState, card.workZipCode) || visible;
|
||||
visible = cvSetNode(data.cvWorkCountry, card.workCountry) || visible;
|
||||
cvSetVisible(data.cvhWork, visible);
|
||||
cvSetVisible(data.cvbWork, visible);
|
||||
|
||||
// make the card view box visible
|
||||
cvSetVisible(top.cvData.CardViewBox, true);
|
||||
|
|
|
@ -27,23 +27,23 @@ Rights Reserved.
|
|||
|
||||
<html:script language="JavaScript" src="chrome://addressbook/content/abCardViewOverlay.js"/>
|
||||
|
||||
<box id="CardViewBox"
|
||||
align="vertical"
|
||||
flex="100%">
|
||||
<box id="CardViewBox" align="vertical" flex="1">
|
||||
|
||||
<box id="CardViewInnerBox" align="vertical" flex="1">
|
||||
|
||||
<html:div hide="true" id="CardTitle">*</html:div>
|
||||
|
||||
<box align="horizontal" flex="100%">
|
||||
<box align="horizontal" style="width:100%" flex="1">
|
||||
|
||||
<box align="vertical" flex="100%" style="width:100px">
|
||||
<box id="cvbName" class="cardviewgroup" align="vertical">
|
||||
<box align="vertical" flex="1" style="width:200px">
|
||||
<box id="cvbName" class="cardViewGroup" align="vertical">
|
||||
<html:div class="CardViewHeading" hide="true" id="cvhName">*</html:div>
|
||||
<html:div class="CardViewText" hide="true" id="cvNickname">*</html:div>
|
||||
<html:div class="CardViewText" hide="true" id="cvEmail1">*</html:div>
|
||||
<html:div class="CardViewText" hide="true" id="cvEmail2">*</html:div>
|
||||
</box>
|
||||
|
||||
<box id="cvbHome" class="cardviewgroup" align="vertical">
|
||||
<box id="cvbHome" class="cardViewGroup" align="vertical">
|
||||
<html:div class="CardViewHeading" hide="true" id="cvhHome">&home.heading;</html:div>
|
||||
<html:div class="CardViewText" hide="true" id="cvHomeAddress">*</html:div>
|
||||
<html:div class="CardViewText" hide="true" id="cvHomeAddress2">*</html:div>
|
||||
|
@ -51,7 +51,7 @@ Rights Reserved.
|
|||
<html:div class="CardViewText" hide="true" id="cvHomeCountry">*</html:div>
|
||||
</box>
|
||||
|
||||
<box id="cvbOther" class="cardviewgroup" align="vertical">
|
||||
<box id="cvbOther" class="cardViewGroup" align="vertical">
|
||||
<html:div class="CardViewHeading" hide="true" id="cvhOther">&other.heading;</html:div>
|
||||
<html:div class="CardViewText" hide="true" id="cvCustom1">*</html:div>
|
||||
<html:div class="CardViewText" hide="true" id="cvCustom2">*</html:div>
|
||||
|
@ -63,8 +63,8 @@ Rights Reserved.
|
|||
|
||||
<spring style="width:20px"/>
|
||||
|
||||
<box align="vertical" flex="100%" style="width:100px">
|
||||
<box id="cvbPhone" class="cardviewgroup" align="vertical">
|
||||
<box align="vertical" flex="1" style="width:200px">
|
||||
<box id="cvbPhone" class="cardViewGroup" align="vertical">
|
||||
<html:div class="CardViewHeading" hide="true" id="cvhPhone">&phone.heading;</html:div>
|
||||
<html:div class="CardViewText" hide="true" id="cvPhWork">*</html:div>
|
||||
<html:div class="CardViewText" hide="true" id="cvPhHome">*</html:div>
|
||||
|
@ -73,7 +73,7 @@ Rights Reserved.
|
|||
<html:div class="CardViewText" hide="true" id="cvPhPager">*</html:div>
|
||||
</box>
|
||||
|
||||
<box id="cvbWork" class="cardviewgroup" align="vertical">
|
||||
<box id="cvbWork" class="cardViewGroup" align="vertical">
|
||||
<html:div class="CardViewHeading" hide="true" id="cvhWork">&work.heading;</html:div>
|
||||
<html:div class="CardViewText" hide="true" id="cvJobTitle">*</html:div>
|
||||
<html:div class="CardViewText" hide="true" id="cvDepartment">*</html:div>
|
||||
|
@ -89,4 +89,6 @@ Rights Reserved.
|
|||
|
||||
</box>
|
||||
|
||||
</box>
|
||||
|
||||
</overlay>
|
||||
|
|
|
@ -29,7 +29,6 @@ Rights Reserved.
|
|||
<!-- FIX ME - remove document.commandDispatcher.updateCommands() when tree selection calls this automatically -->
|
||||
<tree id="dirTree"
|
||||
class="abDirectory"
|
||||
style="width:100%; height:100%"
|
||||
ref="abdirectory://"
|
||||
datasources="rdf:addressdirectory"
|
||||
rdf:containment="http://home.netscape.com/NC-rdf#child"
|
||||
|
@ -37,7 +36,8 @@ Rights Reserved.
|
|||
onselect="DirPaneSelectionChange(); document.commandDispatcher.updateCommands('tree-select');"
|
||||
onblur="goOnEvent(this,'blur')"
|
||||
allownegativeassertions="false"
|
||||
coalesceduplicatearcs="false">
|
||||
coalesceduplicatearcs="false"
|
||||
multiple="true">
|
||||
|
||||
<template>
|
||||
<rule>
|
||||
|
|
|
@ -29,14 +29,14 @@ Rights Reserved.
|
|||
<!-- FIX ME - remove document.commandDispatcher.updateCommands() when tree selection calls this automatically -->
|
||||
<tree id="resultsTree"
|
||||
class="abResults"
|
||||
style="width:100%; height:100%; min-width:10px"
|
||||
datasources="rdf:addressdirectory rdf:addresscard"
|
||||
onselect="top.ResultsPaneSelectionChange(); document.commandDispatcher.updateCommands('tree-select');"
|
||||
onblur="goOnEvent(this,'blur')"
|
||||
ondblclick="top.AbEditCard()"
|
||||
onclick="if ( event.clickCount == 2 ) top.AbEditCard();"
|
||||
containment="http://home.netscape.com/NC-rdf#CardChild"
|
||||
allownegativeassertions="false"
|
||||
coalesceduplicatearcs="false">
|
||||
coalesceduplicatearcs="false"
|
||||
multiple="true">
|
||||
|
||||
<template>
|
||||
<rule>
|
||||
|
@ -46,21 +46,26 @@ Rights Reserved.
|
|||
<treecell class="cardicon" value="rdf:http://home.netscape.com/NC-rdf#DisplayName"/>
|
||||
<treecell value="rdf:http://home.netscape.com/NC-rdf#PrimaryEmail"/>
|
||||
<treecell value="rdf:http://home.netscape.com/NC-rdf#WorkPhone"/>
|
||||
<treecell value="rdf:http://home.netscape.com/NC-rdf#Company"/>
|
||||
</treerow>
|
||||
</treeitem>
|
||||
</treechildren>
|
||||
</rule>
|
||||
</template>
|
||||
|
||||
<treecol style="width:1*" id="NameColumn" rdf:resource="http://home.netscape.com/NC-rdf#DisplayName"/>
|
||||
<treecol style="width:1*" id="EmailColumn" rdf:resource="http://home.netscape.com/NC-rdf#PrimaryEmail"/>
|
||||
<treecol style="width:1*" id="WorkPhoneColumn" rdf:resource="http://home.netscape.com/NC-rdf#WorkPhone"/>
|
||||
<treecolgroup id="theColumns">
|
||||
<treecol persist="hidden width" style="width:2*" id="NameColumn" rdf:resource="http://home.netscape.com/NC-rdf#DisplayName"/>
|
||||
<treecol persist="hidden width" style="width:3*" id="EmailColumn" rdf:resource="http://home.netscape.com/NC-rdf#PrimaryEmail"/>
|
||||
<treecol persist="hidden width" style="width:2*" id="WorkPhoneColumn" rdf:resource="http://home.netscape.com/NC-rdf#WorkPhone"/>
|
||||
<treecol persist="hidden width" style="width:2*" id="OrganizationColumn" rdf:resource="http://home.netscape.com/NC-rdf#Company"/>
|
||||
</treecolgroup>
|
||||
|
||||
<treehead>
|
||||
<treerow>
|
||||
<treerow id="headRow">
|
||||
<treecell value="&nameColumn.label;" onclick="return top.SortResultPane('NameColumn', 'http://home.netscape.com/NC-rdf#DisplayName');"/>
|
||||
<treecell value="&emailColumn.label;" onclick="return top.SortResultPane('EmailColumn', 'http://home.netscape.com/NC-rdf#PrimaryEmail');"/>
|
||||
<treecell value="&phoneColumn.label;" onclick="return top.SortResultPane('WorkPhoneColumn', 'http://home.netscape.com/NC-rdf#WorkPhone');"/>
|
||||
<treecell value="&workPhoneColumn.label;" onclick="return top.SortResultPane('WorkPhoneColumn', 'http://home.netscape.com/NC-rdf#WorkPhone');"/>
|
||||
<treecell value="&organizationColumn.label;" onclick="return top.SortResultPane('OrganizationColumn', 'http://home.netscape.com/NC-rdf#Company');"/>
|
||||
</treerow>
|
||||
</treehead>
|
||||
|
||||
|
|
|
@ -69,12 +69,8 @@ Rights Reserved.
|
|||
<box align="horizontal" flex="100%" style="border-top:solid black 1px; border-bottom:solid black 1px">
|
||||
|
||||
<!-- dir tree -->
|
||||
<box align="horizontal"
|
||||
style="width:180px; height:100%; background-color:white; border-right:solid black 1px">
|
||||
<!-- FIX ME - div is hack to make tree scroll properly -->
|
||||
<html:div style="width:100px; height:100px; min-width:10px" flex="1">
|
||||
<tree id="dirTree"/>
|
||||
</html:div>
|
||||
<box align="horizontal" style="width:180px; height:100%; background-color:white; border-right:solid black 1px">
|
||||
<tree id="dirTree" style="height:100px; min-width:10px" flex="1"/>
|
||||
</box>
|
||||
|
||||
<splitter collapse="before"/>
|
||||
|
@ -86,10 +82,7 @@ Rights Reserved.
|
|||
<!-- results tree -->
|
||||
<box flex="100%" align="vertical"
|
||||
style="background-color:white; border-bottom:solid black 1px">
|
||||
<!-- FIX ME - div is hack to make tree scroll properly -->
|
||||
<html:div style="width:100px; height:100px; min-width:10px" flex="1">
|
||||
<tree id="resultsTree"/>
|
||||
</html:div>
|
||||
<tree id="resultsTree" style="height:100px; min-width:10px" flex="1"/>
|
||||
</box>
|
||||
|
||||
<!-- Box that holds (to,cc,bcc buttons) -->
|
||||
|
@ -108,12 +101,10 @@ Rights Reserved.
|
|||
|
||||
<!-- Address bucket -->
|
||||
<box align="vertical" style="height:170px; background-color:white; border-top:solid black 1px">
|
||||
<html:div style="width:100px;height:100px; min-width:10px" flex="1">
|
||||
<tree id="addressBucket" style="width:100%; height:100%">
|
||||
<treecol style="width:100%"/>
|
||||
<treechildren id="bucketBody"/>
|
||||
</tree>
|
||||
</html:div>
|
||||
<tree id="addressBucket" style="width:100%; height:100%; min-width:10px" flex="1">
|
||||
<treecol style="width:100%"/>
|
||||
<treechildren id="bucketBody"/>
|
||||
</tree>
|
||||
</box>
|
||||
|
||||
</box>
|
||||
|
|
|
@ -40,10 +40,11 @@ function CommandUpdate_AddressBook()
|
|||
oneOrMoreCardsSelected = true;
|
||||
|
||||
// set commands to enabled / disabled
|
||||
goSetCommandEnabled('cmd_PrintCard', oneOrMoreCardsSelected);
|
||||
//goSetCommandEnabled('cmd_PrintCard', oneAddressBookSelected);
|
||||
goSetCommandEnabled('cmd_SortByName', oneAddressBookSelected);
|
||||
goSetCommandEnabled('cmd_SortByEmail', oneAddressBookSelected);
|
||||
goSetCommandEnabled('cmd_SortByPhone', oneAddressBookSelected);
|
||||
goSetCommandEnabled('cmd_SortByWorkPhone', oneAddressBookSelected);
|
||||
goSetCommandEnabled('cmd_SortByOrganization', oneAddressBookSelected);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -38,6 +38,7 @@ Rights Reserved.
|
|||
align="vertical"
|
||||
title="&addressbookWindow.title;"
|
||||
windowtype="mail:addressbook"
|
||||
persist="width height screenX screenY"
|
||||
onload="OnLoadAddressBook()">
|
||||
|
||||
<html:script language="JavaScript" src="chrome://addressbook/content/addressbook.js"/>
|
||||
|
@ -101,9 +102,9 @@ Rights Reserved.
|
|||
<menuitem value="&newCard.label;" accesskey="&newCard.accesskey;" oncommand="AbNewCard()"/>
|
||||
<menu id="menu_New">
|
||||
<menupopup>
|
||||
<menuitem value="&newListCmd.label;" accesskey="&newListCmd.accesskey;" oncommand="AbNewList()"/>
|
||||
<menuitem value="&newListCmd.label;" accesskey="&newListCmd.accesskey;" disabled="true" oncommand="AbNewList()"/>
|
||||
<menuitem value="&newAddressBookCmd.label;" accesskey="&newAddressBookCmd.accesskey;" oncommand="AbNewAddressBook()"/>
|
||||
<menuitem value="&newDirectoryCmd.label;" accesskey="&newDirectoryCmd.accesskey;" oncommand="AbNewDirectoryt()"/>
|
||||
<menuitem value="&newDirectoryCmd.label;" accesskey="&newDirectoryCmd.accesskey;" disabled="true" oncommand="AbNewDirectoryt()"/>
|
||||
<menuseparator/>
|
||||
<menuitem id="menu_newNavigator"/>
|
||||
<menuitem id="menu_newMessage"/>
|
||||
|
@ -114,12 +115,12 @@ Rights Reserved.
|
|||
<menuitem id="menu_close"/>
|
||||
<menuseparator/>
|
||||
<menuitem value="&importCmd.label;" oncommand="AbImport()"/>
|
||||
<menuitem value="&exportCmd.label;" oncommand="AbExport()"/>
|
||||
<menuitem value="&exportCmd.label;" disabled="true" oncommand="AbExport()"/>
|
||||
<menuseparator/>
|
||||
<menuitem id="menu_pageSetup"/>
|
||||
<menuitem value="&printPreviewCmd.label;" oncommand="AbPrintPreview()"/>
|
||||
<menuitem value="&printCardViewCmd.label;" key="key_PrintCard" observes="cmd_PrintCard"/>
|
||||
<menuitem value="&printAddressBook.label;" oncommand="AbPrintAddressBook()"/>
|
||||
<menuitem value="&printPreviewCmd.label;" disabled="true" oncommand="AbPrintPreview()"/>
|
||||
<menuitem value="&printCardViewCmd.label;" key="key_PrintCard" disabled="true" observes="cmd_PrintCard"/>
|
||||
<menuitem value="&printAddressBook.label;" disabled="true" oncommand="AbPrintAddressBook()"/>
|
||||
<menuseparator/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
|
@ -141,6 +142,7 @@ Rights Reserved.
|
|||
oncommand="AbEditCard();"/>
|
||||
<menuitem value="&htmlDomainCmd.label;"
|
||||
accesskey="&htmlDomainCmd.accesskey;"
|
||||
disabled="true"
|
||||
oncommand="AbHTMLDomain();"/>
|
||||
<menuseparator/>
|
||||
<menuitem id="menu_preferences" oncommand="goPreferences('addressbook.xul', 'chrome://addressbook/content/pref-addressing.xul')"/>
|
||||
|
@ -159,7 +161,7 @@ Rights Reserved.
|
|||
<menuitem id="menu_showTaskbar"/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
<menuitem value="&showCardPane.label;" oncommand="AbShowCardPane()"/>
|
||||
<menuitem value="&showCardPane.label;" disabled="true" oncommand="AbShowCardPane()"/>
|
||||
<menu value="&sortMenu.label;">
|
||||
<menupopup>
|
||||
<menuitem value="&sortByNameCmd.label;"
|
||||
|
@ -170,16 +172,17 @@ Rights Reserved.
|
|||
id="cmd_SortByEmail"
|
||||
disabled="true"
|
||||
oncommand="top.SortResultPane('EmailColumn', 'http://home.netscape.com/NC-rdf#PrimaryEmail')"/>
|
||||
<menuitem value="&sortByOrganizationCmd.label;" oncommand="AbSortByOrganization()"/>
|
||||
<menuitem value="&sortByNicknameCmd.label;" oncommand="AbSortByNickname()"/>
|
||||
<menuitem value="&sortByPhoneCmd.label;"
|
||||
id="cmd_SortByPhone"
|
||||
<menuitem value="&sortByWorkPhoneCmd.label;"
|
||||
id="cmd_SortByWorkPhone"
|
||||
disabled="true"
|
||||
oncommand="top.SortResultPane('WorkPhoneColumn', 'http://home.netscape.com/NC-rdf#WorkPhone')"/>
|
||||
<menuitem value="&sortByCityCmd.label;" oncommand="AbSortByCity()"/>
|
||||
<menuitem value="&sortByOrganizationCmd.label;"
|
||||
id="cmd_SortByOrganization"
|
||||
disabled="true"
|
||||
oncommand="top.SortResultPane('OrganizationColumn', 'http://home.netscape.com/NC-rdf#Comapny')"/>
|
||||
<menuseparator/>
|
||||
<menuitem value="&sortAscendingCmd.label;" oncommand="AbSortAscending()"/>
|
||||
<menuitem value="&sortDescendingCmd.label;" oncommand="AbSortDescending()"/>
|
||||
<menuitem value="&sortAscendingCmd.label;" disabled="true" oncommand="AbSortAscending()"/>
|
||||
<menuitem value="&sortDescendingCmd.label;" disabled="true" oncommand="AbSortDescending()"/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
</menupopup>
|
||||
|
@ -195,7 +198,7 @@ Rights Reserved.
|
|||
<toolbar class="standard" id="abToolbar" persist="collapsed">
|
||||
<box id="toolbar_button_box">
|
||||
<titledbutton id="button_newcard" class="button28" align="top" value="&newcardButton.label;" onclick="AbNewCard()"/>
|
||||
<titledbutton id="button_newlist" class="button28" align="top" value="&newlistButton.label;" onclick="AbNewList()"/>
|
||||
<titledbutton id="button_newlist" class="button28" align="top" value="&newlistButton.label;" disabled="true" onclick="AbNewList()"/>
|
||||
<toolbarseparator/>
|
||||
<titledbutton id="button_editcard" class="other28" align="top" value="&editButton.label;" onclick="AbEditCard()"/>
|
||||
<titledbutton id="button_newmessage" class="other28" align="top" value="&newmsgButton.label;" onclick="AbNewMessage()"/>
|
||||
|
@ -208,8 +211,8 @@ Rights Reserved.
|
|||
<spring flex="1"/>
|
||||
</box>
|
||||
|
||||
<titledbutton id="button_stop" class="other28" align="top" value="&stopButton.label;" onclick="AbStop()"/>
|
||||
<titledbutton id="button_search" class="other28" align="top" value="&searchButton.label;" onclick="AbSearch()"/>
|
||||
<titledbutton id="button_stop" class="other28" align="top" value="&stopButton.label;" disabled="true" onclick="AbStop()"/>
|
||||
<titledbutton id="button_search" class="other28" align="top" value="&searchButton.label;" disabled="true" onclick="AbSearch()"/>
|
||||
</box>
|
||||
|
||||
<box id="toolbar_throbber_box" align="vertical">
|
||||
|
@ -228,28 +231,22 @@ Rights Reserved.
|
|||
onclick="sidebarOpenClosePanel(this)">
|
||||
<html:div class="panel-bar" style="min-width:1px">&addressbook-sidebar-header.label;</html:div>
|
||||
</splitter>
|
||||
<html:div style="width:100px; height:100px; min-width:10px" flex="1">
|
||||
<tree id="dirTree"/>
|
||||
</html:div>
|
||||
|
||||
<tree id="dirTree" flex="1"/>
|
||||
</box>
|
||||
<splitter id="sidebar-splitter" collapse="before" persist="state"/>
|
||||
|
||||
<box align="vertical" flex="100%" style="min-width:100px">
|
||||
|
||||
<!-- results tree -->
|
||||
<box id="results_box" flex="50%" style="width:100%" align="vertical">
|
||||
<!-- FIX ME - div is hack to make tree scroll properly -->
|
||||
<html:div flex="1" style="width:100px; height:100px; min-width:10px">
|
||||
<tree id="resultsTree"/>
|
||||
</html:div>
|
||||
<box id="results_box" flex="1" align="vertical">
|
||||
<tree id="resultsTree" flex="1" style="height:0px"/>
|
||||
</box>
|
||||
|
||||
<splitter id="gray_horizontal_splitter" collapse="after"/>
|
||||
|
||||
<!-- card view -->
|
||||
<box style="height:170px">
|
||||
<box id="CardViewBox"/>
|
||||
</box>
|
||||
<box id="CardViewBox" style="height:170px; min-height:1px; min-width:1px"/>
|
||||
|
||||
<box id="status-bar">
|
||||
<!-- replace spring with real stuff later -->
|
||||
|
|
|
@ -26,7 +26,7 @@ Rights Reserved.
|
|||
<!ENTITY DisplayName.label "Display:">
|
||||
<!ENTITY NickName.label "Nickname:">
|
||||
<!ENTITY Internet.box "Internet">
|
||||
<!ENTITY PrimaryEmail.label "* Email:">
|
||||
<!ENTITY PrimaryEmail.label "Email:">
|
||||
<!ENTITY SecondEmail.label "Additional Email:">
|
||||
<!ENTITY SendPlainText.label "Send email as plain text (no html)">
|
||||
<!ENTITY Phones.box "Phones">
|
||||
|
|
|
@ -56,17 +56,15 @@ Rights Reserved.
|
|||
<!ENTITY htmlDomainCmd.accesskey "h">
|
||||
|
||||
<!-- View Menu -->
|
||||
<!ENTITY showAbToolbarCmd.label "Show Toolbar">
|
||||
<!ENTITY showAbToolbarCmd.label "Show Address Book Toolbar">
|
||||
<!-- LOCALIZATION NOTE (showAbToolbarCmd.accesskey) : DONT_TRANSLATE -->
|
||||
<!ENTITY showAbToolbarCmd.accesskey "t">
|
||||
<!ENTITY showAbToolbarCmd.accesskey "o">
|
||||
<!ENTITY showCardPane.label ".Card Pane">
|
||||
<!ENTITY sortMenu.label "Sort">
|
||||
<!ENTITY sortByNameCmd.label "by Name">
|
||||
<!ENTITY sortByEmailCmd.label "by Email">
|
||||
<!ENTITY sortByOrganizationCmd.label ".by Organization">
|
||||
<!ENTITY sortByNicknameCmd.label ".by Nickname">
|
||||
<!ENTITY sortByPhoneCmd.label "by Phone Number">
|
||||
<!ENTITY sortByCityCmd.label ".by City">
|
||||
<!ENTITY sortByWorkPhoneCmd.label "by Work Phone">
|
||||
<!ENTITY sortByOrganizationCmd.label "by Organization">
|
||||
<!ENTITY sortAscendingCmd.label ".Ascending">
|
||||
<!ENTITY sortDescendingCmd.label ".Descending">
|
||||
<!ENTITY stopSearchingCmd.label ".Stop Searching">
|
||||
|
|
|
@ -21,5 +21,5 @@ Rights Reserved.
|
|||
<!-- Column Headings -->
|
||||
<!ENTITY nameColumn.label "Name">
|
||||
<!ENTITY emailColumn.label "Email">
|
||||
<!-- LOCALIZATION NOTE (phoneColumn.label): "#" means "number" -->
|
||||
<!ENTITY phoneColumn.label "Phone#">
|
||||
<!ENTITY workPhoneColumn.label "Work Phone">
|
||||
<!ENTITY organizationColumn.label "Organization">
|
||||
|
|
|
@ -27,40 +27,45 @@ Rights Reserved.
|
|||
|
||||
box#CardViewBox {
|
||||
overflow: auto;
|
||||
background-color: #EEEEEE;
|
||||
min-width: 150px;
|
||||
user-focus: ignore;
|
||||
}
|
||||
|
||||
box#CardViewInnerBox {
|
||||
margin-top: 2px;
|
||||
margin-bottom: 2px;
|
||||
padding-left: 8px;
|
||||
padding-right: 8px;
|
||||
background-color: #EEEEEE;
|
||||
min-width: 1px;
|
||||
user-focus: ignore;
|
||||
}
|
||||
|
||||
html|div#CardTitle {
|
||||
font-size: 150%;
|
||||
font-weight: bold;
|
||||
border-bottom: 2px solid black;
|
||||
min-width: 120px;
|
||||
}
|
||||
|
||||
box.cardviewgroup {
|
||||
box.cardViewGroup {
|
||||
margin-top: 8px;
|
||||
padding-bottom: 5px;
|
||||
min-width: 1px;
|
||||
min-width: 50px;
|
||||
}
|
||||
|
||||
html|div[class="CardViewHeading"] {
|
||||
padding: 1px;
|
||||
padding-left: 5px;
|
||||
margin-bottom: 1px;
|
||||
background-color: #99CCCC;
|
||||
color: black;
|
||||
font-weight: bold;
|
||||
min-width: 1px;
|
||||
min-width: 30px;
|
||||
}
|
||||
|
||||
html|div[class="CardViewText"] {
|
||||
padding-left: 20px;
|
||||
padding-right: 2px;
|
||||
min-width: 1px;
|
||||
min-width: 30px;
|
||||
}
|
||||
|
||||
|
||||
|
@ -74,11 +79,13 @@ box[class="CardEditWidth"] {
|
|||
|
||||
html|input[class="CardEdit"] {
|
||||
width : 25em;
|
||||
height : 1.5em;
|
||||
margin : 0px;
|
||||
margin : 2px 0px 2px 0px ;
|
||||
padding : 0px;
|
||||
padding-right : 0px;
|
||||
min-height : 1.5em;
|
||||
}
|
||||
|
||||
html|label[class="textInput"] {
|
||||
padding: 0px;
|
||||
margin-top: 3px;
|
||||
}
|
||||
|
||||
|
||||
|
@ -118,7 +125,7 @@ tree[class="abResults"] treeitem > treerow > treecell.cardicon {
|
|||
}
|
||||
|
||||
[hide] {
|
||||
display: none;
|
||||
visibility: collapse;
|
||||
}
|
||||
|
||||
#button_newcard {
|
||||
|
|
Загрузка…
Ссылка в новой задаче