mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-06 00:45:09 +00:00
(js) Show loading progress for messages and cards
This commit is contained in:
@@ -483,7 +483,7 @@
|
||||
// Add new cards matching the search query
|
||||
_.forEach(results, function(cardId, index) {
|
||||
if (_.isUndefined(_.find(cards, _.bind(compareIds, cardId)))) {
|
||||
var data = { id: cardId };
|
||||
var data = { pid: addressbookId, id: cardId };
|
||||
var card = new AddressBook.$Card(data, search);
|
||||
cards.splice(index, 0, card);
|
||||
}
|
||||
@@ -686,7 +686,7 @@
|
||||
|
||||
// Instanciate Card objects
|
||||
_.reduce(_this.ids, function(cards, card, i) {
|
||||
var data = { id: card };
|
||||
var data = { pid: _this.id, id: card };
|
||||
|
||||
// Build map of ID <=> index
|
||||
_this.idsMap[data.id] = i;
|
||||
|
||||
Reference in New Issue
Block a user