зеркало из https://github.com/mozilla/pjs.git
More cleanup for address book. Notes area in address book card is now multiple lines.
This commit is contained in:
Родитель
e90af3b58d
Коммит
1c9b2e75fd
|
@ -17,6 +17,11 @@ function abNameOnLoad()
|
||||||
if ( window.arguments[0].okCallback )
|
if ( window.arguments[0].okCallback )
|
||||||
top.okCallback = window.arguments[0].okCallback;
|
top.okCallback = window.arguments[0].okCallback;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// focus on input
|
||||||
|
var name = document.getElementById('name');
|
||||||
|
if ( name )
|
||||||
|
name.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
function abNameOKButton()
|
function abNameOKButton()
|
||||||
|
|
|
@ -110,7 +110,13 @@ function NewCardOKButton()
|
||||||
if ( popup )
|
if ( popup )
|
||||||
{
|
{
|
||||||
var uri = popup.value;
|
var uri = popup.value;
|
||||||
|
|
||||||
|
// FIX ME - hack to avoid crashing if no ab selected because of blank option bug from template
|
||||||
|
// should be able to just remove this if we are not seeing blank lines in the ab popup
|
||||||
|
if ( !uri )
|
||||||
|
return false; // don't close window
|
||||||
|
// -----
|
||||||
|
|
||||||
var cardproperty = Components.classes["component://netscape/addressbook/cardproperty"].createInstance();
|
var cardproperty = Components.classes["component://netscape/addressbook/cardproperty"].createInstance();
|
||||||
cardproperty = cardproperty.QueryInterface(Components.interfaces.nsIAbCard);
|
cardproperty = cardproperty.QueryInterface(Components.interfaces.nsIAbCard);
|
||||||
|
|
||||||
|
|
|
@ -273,7 +273,7 @@ Rights Reserved.
|
||||||
</html:legend>
|
</html:legend>
|
||||||
|
|
||||||
<box align="vertical" style="width:100%">
|
<box align="vertical" style="width:100%">
|
||||||
<html:input id="Notes" type="text" class="CardEdit"/>
|
<html:textarea id="Notes" rows="15"/>
|
||||||
</box>
|
</box>
|
||||||
</html:fieldset>
|
</html:fieldset>
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ Rights Reserved.
|
||||||
<box id="CardViewBox"
|
<box id="CardViewBox"
|
||||||
align="vertical"
|
align="vertical"
|
||||||
flex="100%"
|
flex="100%"
|
||||||
style="background-color:#dddddd; padding-left:5px; padding-right:5px">
|
style="overflow:auto; background-color:#dddddd; padding-left:5px; padding-right:5px">
|
||||||
|
|
||||||
<html:div hide="true" style="font-size:150%; font-weight:bold; border-bottom:2px solid black" id="CardTitle">*</html:div>
|
<html:div hide="true" style="font-size:150%; font-weight:bold; border-bottom:2px solid black" id="CardTitle">*</html:div>
|
||||||
|
|
||||||
|
|
|
@ -83,6 +83,12 @@ function SelectFirstAddressBook()
|
||||||
|
|
||||||
function ChangeDirectoryByDOMNode(dirNode)
|
function ChangeDirectoryByDOMNode(dirNode)
|
||||||
{
|
{
|
||||||
|
// FIX ME - deselect the items in the resutls pane to work around tree bug
|
||||||
|
var resultsTree = document.getElementById('resultsTree');
|
||||||
|
if ( resultsTree )
|
||||||
|
resultsTree.clearItemSelection();
|
||||||
|
// ----
|
||||||
|
|
||||||
var uri = dirNode.getAttribute('id');
|
var uri = dirNode.getAttribute('id');
|
||||||
dump("uri = " + uri + "\n");
|
dump("uri = " + uri + "\n");
|
||||||
|
|
||||||
|
@ -104,7 +110,6 @@ function ResultsPaneSelectionChange()
|
||||||
else
|
else
|
||||||
ClearCardViewPane();
|
ClearCardViewPane();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function SortResultPane(column, sortKey)
|
function SortResultPane(column, sortKey)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче