commit 0499868f52f8cfcdbbe4dedcacbe7ec14814732d
parent 6079fba9aa7ba8f59c768f6b196dc8fca2ad0a6d
Author: markseu <mark2011@mayberg.se>
Date: Tue, 7 Jan 2020 16:02:59 +0100
Updated edit extension
Diffstat:
3 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/system/extensions/edit.js b/system/extensions/edit.js
@@ -825,6 +825,10 @@ yellow.edit = {
request.open("POST", window.location.pathname, true);
request.onload = function() { if (this.status==200) { thisObject.uploadFileDone.call(thisObject, elementText, this.responseText); } else { thisObject.uploadFileError.call(thisObject, elementText, this.responseText); } };
request.send(formData);
+ } else {
+ var textError = extensions.indexOf(extension)!=-1 ? "file too big!" : "format not supported!";
+ var textNew = "[Can't upload file '"+file.name+"', "+textError+"]";
+ yellow.editor.setMarkdown(elementText, textNew, "insert");
}
},
diff --git a/system/extensions/edit.php b/system/extensions/edit.php
@@ -4,7 +4,7 @@
// This file may be used and distributed under the terms of the public license.
class YellowEdit {
- const VERSION = "0.8.15";
+ const VERSION = "0.8.16";
const TYPE = "feature";
public $yellow; //access to API
public $response; //web response
diff --git a/system/extensions/install-languages.zip b/system/extensions/install-languages.zip
Binary files differ.