Tests fixes

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2018-08-24 20:31:29 +02:00
parent 03b112c486
commit 719f9288b9
No known key found for this signature in database
GPG Key ID: 60C25B8C072916CF
1 changed files with 7 additions and 4 deletions

View File

@ -21,8 +21,11 @@
*/
$(document).ready(function() {
var noteHtml = document.getElementById('notemenu').outerHTML
$(noteHtml).insertBefore('#header-primary-action');
$('#notemenu').removeClass('hidden');
OC.registerMenu($('#notemenu .menutoggle'), $('#notemenu .menu'))
var noteElmt = document.getElementById('notemenu')
if (noteElmt) {
var noteHtml = noteElmt.outerHTML
$(noteHtml).insertBefore('#header-primary-action');
$('#notemenu').removeClass('hidden');
OC.registerMenu($('#notemenu .menutoggle'), $('#notemenu .menu'))
}
})