diff options
author | Louis Chemineau <louis@chmn.me> | 2021-12-02 14:50:49 +0100 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2022-01-08 10:12:47 +0100 |
commit | adfb9010d47c91c5cc95b764d68ec181a029b475 (patch) | |
tree | 6899c32dd81015e76609edf6ae371ab2082925b0 /core | |
parent | f8f09bff0409347573464aba31a9775157c87530 (diff) | |
download | nextcloud-server-adfb9010d47c91c5cc95b764d68ec181a029b475.tar.gz nextcloud-server-adfb9010d47c91c5cc95b764d68ec181a029b475.zip |
Migrate to webpack v5
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'core')
-rw-r--r-- | core/src/OC/appsettings.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/src/OC/appsettings.js b/core/src/OC/appsettings.js index 8d200960660..f8e419cb15b 100644 --- a/core/src/OC/appsettings.js +++ b/core/src/OC/appsettings.js @@ -24,6 +24,7 @@ /* eslint-disable */ import $ from 'jquery' import { filePath } from './routing' +import { generateFilePath } from "@nextcloud/router" /** * Opens a popup with the setting for an app. @@ -64,7 +65,7 @@ export const appSettings = args => { popup.hide().remove() } else { const arrowclass = settings.hasClass('topright') ? 'up' : 'left' - $.get(filePath(props.appid, '', props.scriptName), function(data) { + $.get(generateFilePath(props.appid, '', props.scriptName), function(data) { popup.html(data).ready(function() { popup.prepend('<span class="arrow ' + arrowclass + '"></span><h2>' + t('core', 'Settings') + '</h2><a class="close"></a>').show() popup.find('.close').bind('click', function() { @@ -85,7 +86,7 @@ export const appSettings = args => { if (props.cache) { $.ajaxSetup({ cache: true }) } - $.getScript(filePath(props.appid, 'js', scriptname)) + $.getScript(generateFilePath(props.appid, 'js', scriptname)) .fail(function(jqxhr, settings, e) { throw e }) |