diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-08-24 20:31:29 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-08-24 20:31:29 +0200 |
commit | 719f9288b97bcd6c9de42d0eb682e11a38ab864b (patch) | |
tree | 9923b688af671f22654549f8e817762e3d63f0fc | |
parent | 03b112c4860b77d534dafd5f0fc8df6b31a63a2d (diff) | |
download | nextcloud-server-719f9288b97bcd6c9de42d0eb682e11a38ab864b.tar.gz nextcloud-server-719f9288b97bcd6c9de42d0eb682e11a38ab864b.zip |
Tests fixes
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
-rw-r--r-- | apps/files_sharing/js/public_note.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/apps/files_sharing/js/public_note.js b/apps/files_sharing/js/public_note.js index f8aa4cf5a60..a303d6c7675 100644 --- a/apps/files_sharing/js/public_note.js +++ b/apps/files_sharing/js/public_note.js @@ -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')) + } })
\ No newline at end of file |