summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
Diffstat (limited to 'core/js')
-rw-r--r--core/js/jquery.contactsmenu.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/core/js/jquery.contactsmenu.js b/core/js/jquery.contactsmenu.js
index 6e5f3228e3c..2c950fb35f6 100644
--- a/core/js/jquery.contactsmenu.js
+++ b/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) {