mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
MediaPicker: Fix routes wrt creating folders at the default path
--HG-- branch : dev
This commit is contained in:
@@ -57,7 +57,7 @@
|
||||
});
|
||||
|
||||
$("#createFolder").live("click", function () {
|
||||
$.post("MediaPicker/Admin/CreateFolder", { path: query("mediaPath"), folderName: $("#folderName").val(), __RequestVerificationToken: $("#__requesttoken").val() },
|
||||
$.post("MediaPicker/CreateFolder", { path: query("mediaPath") || "", folderName: $("#folderName").val(), __RequestVerificationToken: $("#__requesttoken").val() },
|
||||
function (response) {
|
||||
if (typeof response === "string") {
|
||||
alert(response);
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
var adminIndex = location.href.toLowerCase().indexOf("/admin/");
|
||||
if (adminIndex === -1) return;
|
||||
var url = location.href.substr(0, adminIndex)
|
||||
+ "/MediaPicker/Admin?uploadpath=" + (data.uploadMediaPath || "")
|
||||
+ "/Admin/MediaPicker?uploadpath=" + (data.uploadMediaPath || "")
|
||||
+ "&callback=" + callbackName
|
||||
+ "&editmode=" + (!!(data.img && data.img.src))
|
||||
+ "&" + (new Date() - 0);
|
||||
|
||||
Reference in New Issue
Block a user