summaryrefslogtreecommitdiffstats
path: root/core/js/jquery.contactsmenu.js
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-10-15 10:58:31 +0200
committerJulius Härtl <jus@bitgrid.net>2018-10-16 09:51:36 +0200
commit0a4a23f015f1b899739e4b1d852a13fea274e4ad (patch)
tree18863149b201384f13bea9441bd47ba9c0148704 /core/js/jquery.contactsmenu.js
parentad66b0f9ab010ee00d249d6f8512d30332e8a0af (diff)
downloadnextcloud-server-0a4a23f015f1b899739e4b1d852a13fea274e4ad.tar.gz
nextcloud-server-0a4a23f015f1b899739e4b1d852a13fea274e4ad.zip
Move jquery.contactsmenu.js to compiled handlebars
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'core/js/jquery.contactsmenu.js')
-rw-r--r--core/js/jquery.contactsmenu.js11
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