diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-08-27 23:06:00 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-09-20 03:30:20 +0200 |
commit | 085aab24ffd920df2f3610c9f6c2fa1e71a6d294 (patch) | |
tree | 0536be9d78feeba507bbe76d4c745158ab63005b /core/src/jquery/contactsmenu.js | |
parent | 4ba3d4a31a5a27a7fad6b8928d899ec7247289ca (diff) | |
download | nextcloud-server-085aab24ffd920df2f3610c9f6c2fa1e71a6d294.tar.gz nextcloud-server-085aab24ffd920df2f3610c9f6c2fa1e71a6d294.zip |
chore: fix usage of deprecated functions and adjust code style
This solves 57 ESLint warnings by replacing deprecated code with `@nextcloud/` libraries,
as well as adding missing type information, importing jQuery instead of relying on global one,
and the same with Moment.js.
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'core/src/jquery/contactsmenu.js')
-rw-r--r-- | core/src/jquery/contactsmenu.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/jquery/contactsmenu.js b/core/src/jquery/contactsmenu.js index 8c59c02133b..fba014c364e 100644 --- a/core/src/jquery/contactsmenu.js +++ b/core/src/jquery/contactsmenu.js @@ -5,7 +5,7 @@ import $ from 'jquery' -import OC from '../OC/index.js' +import { generateUrl } from '@nextcloud/router' import { isA11yActivation } from '../Util/a11y.js' const LIST = '' @@ -51,7 +51,7 @@ $.fn.contactsMenu = function(shareWith, shareType, appendTo) { } $list.addClass('loaded') - $.ajax(OC.generateUrl('/contactsmenu/findOne'), { + $.ajax(generateUrl('/contactsmenu/findOne'), { method: 'POST', data: { shareType, |