Skip to content
This repository has been archived by the owner on Sep 11, 2020. It is now read-only.

Commit

Permalink
v2.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
j0k3r committed Apr 11, 2017
1 parent e46a46f commit 3ff2b65
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@

2.4.1. / 2017-04-11
==================

* Ability to add upload failed callback to options #377

2.4.0. / 2016-08-08
==================

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "medium-editor-insert-plugin",
"version": "2.4.0",
"version": "2.4.1",
"description": "jQuery insert plugin for MediumEditor",
"homepage": "http://linkesch.com/medium-editor-insert-plugin",
"main": [
Expand Down
10 changes: 9 additions & 1 deletion dist/js/medium-editor-insert-plugin.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* medium-editor-insert-plugin v2.4.0 - jQuery insert plugin for MediumEditor
* medium-editor-insert-plugin v2.4.1 - jQuery insert plugin for MediumEditor
*
* http://linkesch.com/medium-editor-insert-plugin
*
Expand Down Expand Up @@ -1646,6 +1646,7 @@ this["MediumInsert"]["Templates"]["src/js/templates/images-toolbar.hbs"] = Handl
acceptFileTypesError: 'This file is not in a supported format: ',
maxFileSizeError: 'This file is too big: '
}
// uploadError: function($el, data) {}
// uploadCompleted: function ($el, data) {}
};

Expand Down Expand Up @@ -1822,7 +1823,14 @@ this["MediumInsert"]["Templates"]["src/js/templates/images-toolbar.hbs"] = Handl
uploadErrors.push(this.options.messages.maxFileSizeError + file.name);
}
if (uploadErrors.length > 0) {
if (this.options.uploadFailed && typeof this.options.uploadFailed === "function") {
this.options.uploadFailed(uploadErrors, data);

return;
}

alert(uploadErrors.join("\n"));

return;
}

Expand Down
6 changes: 3 additions & 3 deletions dist/js/medium-editor-insert-plugin.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "medium-editor-insert-plugin",
"version": "2.4.0",
"version": "2.4.1",
"description": "jQuery insert plugin for MediumEditor",
"main": "dist/js/medium-editor-insert-plugin.js",
"homepage": "http://linkesch.com/medium-editor-insert-plugin",
Expand Down

0 comments on commit 3ff2b65

Please sign in to comment.