Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-11-10 11:50:46 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-11-13 10:46:35 +0300
commitae0a496da83613dc8b41540f2fa32479a3ec3f07 (patch)
tree494fdf6e463a0691356b41d154d2cc7b8881168f /core/src
parent25f8d76f266d53fa4b6f0f3c4fa65febc7b31253 (diff)
Bump jquery from 2.2.4 to 3.1.0
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/src')
-rw-r--r--core/src/OC/l10n.js2
-rw-r--r--core/src/jquery/contactsmenu.js10
2 files changed, 7 insertions, 5 deletions
diff --git a/core/src/OC/l10n.js b/core/src/OC/l10n.js
index 22bb94e4e1b..2eeb342aa13 100644
--- a/core/src/OC/l10n.js
+++ b/core/src/OC/l10n.js
@@ -328,7 +328,7 @@ export default L10n
*
* @returns {String} locale string
*/
-export const getLocale = () => $('html').data('locale')
+export const getLocale = () => $('html').data('locale') ?? 'en'
/**
* Returns the user's language
diff --git a/core/src/jquery/contactsmenu.js b/core/src/jquery/contactsmenu.js
index 50d256ff3f8..447f5adb62a 100644
--- a/core/src/jquery/contactsmenu.js
+++ b/core/src/jquery/contactsmenu.js
@@ -82,9 +82,10 @@ $.fn.contactsMenu = function(shareWith, shareType, appendTo) {
}
actions.forEach(function(action) {
- const template = entryTemplate
- $list.find('ul').append(template(action))
+ $list.find('ul').append(entryTemplate(action))
})
+
+ $div.trigger('load')
}, function(jqXHR) {
$list.find('ul').find('li').addClass('hidden')
@@ -95,11 +96,12 @@ $.fn.contactsMenu = function(shareWith, shareType, appendTo) {
title = t('core', 'Error fetching contact actions')
}
- const template = entryTemplate
- $list.find('ul').append(template({
+ $list.find('ul').append(entryTemplate({
hyperlink: '#',
title,
}))
+
+ $div.trigger('loaderror', jqXHR)
})
})