first commit

This commit is contained in:
huangjx
2021-09-09 22:03:08 +08:00
commit f2a2365102
74 changed files with 33916 additions and 0 deletions

26
js/settings/admin.js Normal file
View File

@@ -0,0 +1,26 @@
/**
* ownCloud - ocDownloader
*
* This file is licensed under the Affero General Public License version 3 or
* later. See the LICENSE file.
*
* @author Xavier Beurois <www.sgc-univ.net>
* @copyright Xavier Beurois 2015
*/
window.addEventListener('DOMContentLoaded', function () {
$('.ncdownloader-admin-settings').on('click', 'input[type="button"]', function (event) {
OC.msg.startSaving('#ncdownloader-message');
const target = $(this).attr("data-rel");
const http = $.ncdownloader.http;
let inputData = http.getData(target);
http.setData(inputData.data);
const path = inputData.url || "/apps/ncdownloader/admin/save";
let url = OC.generateUrl(path);
http.setUrl(url);
http.setHandler(function () {
OC.msg.finishedSuccess('#ncdownloader-message', "OK");
});
http.send();
});
});