This commit is contained in:
2025-12-24 16:59:05 +08:00
parent b52a51c09b
commit b68946fe79
218 changed files with 10790 additions and 3878 deletions
+4 -4
View File
@@ -243,7 +243,7 @@ define(['jquery', 'bootstrap', 'upload', 'validator'], function ($, undefined, U
var admin_id = $(this).data("admin-id") ? $(this).data("admin-id") : '';
var user_id = $(this).data("user-id") ? $(this).data("user-id") : '';
mimetype = mimetype.replace(/\/\*/ig, '/');
var url = $(this).data("url") ? $(this).data("url") : "/app/admin/attachment/list";
var url = $(this).data("url") ? $(this).data("url") : Config.admin_path+"/files/list";
parent.Fast.api.open(url + "?element_id=" + $(this).attr("id") + "&multiple=" + multiple + "&mimetype=" + mimetype + "&admin_id=" + admin_id + "&user_id=" + user_id, __('Choose'), {
callback: function (data) {
var button = $("#" + $(that).attr("id"));
@@ -607,7 +607,7 @@ define(['jquery', 'bootstrap', 'upload', 'validator'], function ($, undefined, U
editor:function(form){
if ($("[data-role='editor']", form).length > 0) {
require(['froala-editor','froala_lang/zh_cn'], function (FroalaEditor) {
var uploadUrl = '/app/admin/attachment/feupload';
var uploadUrl = Config.admin_path+'/files/feupload';
new FroalaEditor('[data-role=editor]',{
height:500,
language: 'zh_cn',
@@ -732,7 +732,7 @@ define(['jquery', 'bootstrap', 'upload', 'validator'], function ($, undefined, U
imageManagerScrollOffset: 10,
// Set the load images request URL.
imageManagerLoadURL: "/app/admin/attachment/list",
imageManagerLoadURL: Config.admin_path+"/files/list",
// Set the load images request type.
imageManagerLoadMethod: "GET",
@@ -741,7 +741,7 @@ define(['jquery', 'bootstrap', 'upload', 'validator'], function ($, undefined, U
imageManagerLoadParams: {user_id: 4219762},
// Set the delete image request URL.
imageManagerDeleteURL: "/app/admin/attachment/delete",
imageManagerDeleteURL: Config.admin_path+"/files/delete",
// Set the delete image request type.
imageManagerDeleteMethod: "DELETE",