mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-29 17:40:42 +00:00
Fixing bugscape bug 830, Address Book was calling CallSaveListeners before the abURI was created. r=alecf
This commit is contained in:
parent
737afa472d
commit
5d875d7a8c
@ -179,8 +179,8 @@ function NewCardOKButton()
|
||||
if ( editCard.card )
|
||||
{
|
||||
SetCardValues(editCard.card, document);
|
||||
|
||||
editCard.card.addCardToDatabase(uri);
|
||||
CallSaveListeners();
|
||||
}
|
||||
}
|
||||
|
||||
@ -192,6 +192,7 @@ function EditCardOKButton()
|
||||
SetCardValues(editCard.card, document);
|
||||
|
||||
editCard.card.editCardToDatabase(editCard.abURI);
|
||||
CallSaveListeners();
|
||||
|
||||
// callback to allow caller to update
|
||||
if ( editCard.okCallback )
|
||||
@ -304,7 +305,6 @@ function SetCardValues(cardproperty, doc)
|
||||
cardproperty.custom4 = doc.getElementById('Custom4').value;
|
||||
cardproperty.notes = doc.getElementById('Notes').value;
|
||||
}
|
||||
CallSaveListeners();
|
||||
}
|
||||
|
||||
function CleanUpWebPage(webPage)
|
||||
|
Loading…
x
Reference in New Issue
Block a user