diff options
Diffstat (limited to 'core/js/jquery.contactsmenu.js')
-rw-r--r-- | core/js/jquery.contactsmenu.js | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/core/js/jquery.contactsmenu.js b/core/js/jquery.contactsmenu.js index e3f24dfff52..4b443d5e3b3 100644 --- a/core/js/jquery.contactsmenu.js +++ b/core/js/jquery.contactsmenu.js @@ -6,13 +6,6 @@ */ (function ($) { - var ENTRY = '' - + '<li>' - + ' <a href="{{hyperlink}}">' - + ' {{#if icon}}<img src="{{icon}}">{{/if}}' - + ' <span>{{title}}</span>' - + ' </a>' - + '</li>'; var LIST = '' + '<div class="menu popovermenu menu-left hidden contactsmenu-popover">' @@ -71,7 +64,7 @@ } actions.forEach(function(action) { - var template = Handlebars.compile(ENTRY); + var template = OC.ContactsMenu.Templates['jquery_entry']; $list.find('ul').append(template(action)); }); @@ -88,7 +81,7 @@ title = t('core', 'Error fetching contact actions'); } - var template = Handlebars.compile(ENTRY); + var template = OC.ContactsMenu.Templates['jquery_entry']; $list.find('ul').append(template({ hyperlink: '#', title: title |