Skip to content

Commit

Permalink
v2.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaspare Sganga committed Jun 7, 2018
1 parent d71d79c commit 8eda5b0
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 12 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).


## v2.1.4 - 2018-06-07
### Fixed
- Replaced the `.load()` method with a custom `ajax()` request to load external SVG images in order to prevent conflicts with `ajaxStart()` and `ajaxSend()` event handlers



## v2.1.3 - 2018-05-04
### Fixed
- package.json `main` path fix
Expand Down
10 changes: 8 additions & 2 deletions dist/loadingoverlay.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/***************************************************************************************************
LoadingOverlay - A flexible loading overlay jQuery plugin
Author : Gaspare Sganga
Version : 2.1.3
Version : 2.1.4
License : MIT
Documentation : https://gasparesganga.com/labs/jquery-loading-overlay/
***************************************************************************************************/
Expand Down Expand Up @@ -275,7 +275,13 @@ LoadingOverlay - A flexible loading overlay jQuery plugin
if (!settings.imageClass && settings.imageColor) element.find("*").css(settings.imageColor);
} else if (settings.image.slice(-4).toLowerCase() === ".svg" || settings.image.slice(0, 14).toLowerCase() === "data:image/svg") {
// SVG file or base64-encoded SVG
element.load(settings.image, function(){
$.ajax({
url : settings.image,
type : "GET",
dataType : "html",
global : false
}).done(function(data){
element.html(data);
element.children().css(_css.element_svg);
if (!settings.imageClass && settings.imageColor) element.find("*").css(settings.imageColor);
});
Expand Down
4 changes: 2 additions & 2 deletions dist/loadingoverlay.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/loadingoverlay.min.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gasparesganga-jquery-loading-overlay",
"version": "2.1.3",
"version": "2.1.4",
"description": "A flexible loading overlay jQuery plugin",
"homepage": "https://gasparesganga.com/labs/jquery-loading-overlay/",
"author": "Gaspare Sganga <[email protected]> (https://gasparesganga.com)",
Expand Down Expand Up @@ -28,7 +28,7 @@
"del": "^3.0.0",
"gulp": "^4.0.0",
"gulp-header": "^2.0.5",
"gulp-rename": "^1.2.2",
"gulp-rename": "^1.2.3",
"gulp-replace": "^0.6.1",
"gulp-sourcemaps": "^2.6.4",
"gulp-uglify": "^3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/loadingoverlay.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/***************************************************************************************************
LoadingOverlay - A flexible loading overlay jQuery plugin
Author : Gaspare Sganga
Version : 2.1.4dev
Version : 2.1.4
License : MIT
Documentation : https://gasparesganga.com/labs/jquery-loading-overlay/
***************************************************************************************************/
Expand Down

0 comments on commit 8eda5b0

Please sign in to comment.