csharp-mvc: create empty sample, new upload style

This commit is contained in:
Andrey Panov
2019-09-09 17:02:40 +03:00
parent 1f022f12a1
commit df74cdeb66
10 changed files with 90 additions and 42 deletions

View File

@ -91,11 +91,6 @@ if (typeof jQuery != "undefined") {
return;
}
if (jq("#checkOriginalFormat").is(":checked")) {
loadScripts();
return;
}
timer = setTimeout(function () {
var requestAddress = UrlConverter
+ "&filename=" + encodeURIComponent(jq("#hiddenFileName").val());
@ -194,6 +189,18 @@ if (typeof jQuery != "undefined") {
jq.unblockUI();
});
jq(document).on("click", ".try-editor", function (e) {
var url = jq(".try-editor-list")[0].attributes["data-link"].value;
url += "?fileExt=" + e.target.attributes["data-type"].value;
if (jq("#createSample").is(":checked")) {
url += "&sample=true";
}
var w = window.open(url, "_blank");
w.onload = function () {
window.location.reload();
}
});
jq.dropdownToggle({
switcherSelector: ".question",
dropdownID: "hint"