Browse Source
Contactsmenu popover: show proper message when server throws error
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
pull/4374/head
Georg Ehrke
9 years ago
No known key found for this signature in database
GPG Key ID: 9D98FD9380A1CB43
1 changed files with
8 additions and
2 deletions
-
core/js/jquery.contactsmenu.js
|
|
|
@ -78,9 +78,15 @@ |
|
|
|
if (actions.length === 0) { |
|
|
|
|
|
|
|
} |
|
|
|
}, function() { |
|
|
|
$list.find('ul').find('li').addClass('hidden'); |
|
|
|
|
|
|
|
var template = Handlebars.compile(ENTRY); |
|
|
|
$list.find('ul').append(template({ |
|
|
|
hyperlink: '#', |
|
|
|
title: t('core', 'Error fetching contact actions') |
|
|
|
})); |
|
|
|
}); |
|
|
|
}).catch(function(reason) { |
|
|
|
// TODO
|
|
|
|
}); |
|
|
|
|
|
|
|
$(document).click(function(event) { |
|
|
|
|