summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-08-24 20:31:29 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-08-24 20:31:29 +0200
commit719f9288b97bcd6c9de42d0eb682e11a38ab864b (patch)
tree9923b688af671f22654549f8e817762e3d63f0fc /apps/files_sharing
parent03b112c4860b77d534dafd5f0fc8df6b31a63a2d (diff)
downloadnextcloud-server-719f9288b97bcd6c9de42d0eb682e11a38ab864b.tar.gz
nextcloud-server-719f9288b97bcd6c9de42d0eb682e11a38ab864b.zip
Tests fixes
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/js/public_note.js11
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