Skip to content

Commit

Permalink
Fixed bug: "PDF not loading if drageSingle/dragMultiple disabled)"
Browse files Browse the repository at this point in the history
  • Loading branch information
muaz-khan committed Dec 19, 2018
1 parent 24596fe commit 088a6aa
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "canvas-designer",
"preferGlobal": false,
"version": "1.2.6",
"version": "1.2.7",
"author": {
"name": "Muaz Khan",
"email": "muazkh@gmail.com",
Expand Down
6 changes: 4 additions & 2 deletions dev/decorator.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,9 @@ window.addEventListener('load', function() {
image.src = data_uris.dragSingle;
}

decorateDragLastPath();

if (tools.dragSingle === true) {
decorateDragLastPath();
document.getElementById('drag-last-path').style.display = 'block';
}

Expand All @@ -217,8 +218,9 @@ window.addEventListener('load', function() {
image.src = data_uris.dragMultiple;
}

decorateDragAllPaths();

if (tools.dragMultiple === true) {
decorateDragAllPaths();
document.getElementById('drag-all-paths').style.display = 'block';
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "canvas-designer",
"preferGlobal": false,
"version": "1.2.6",
"version": "1.2.7",
"author": {
"name": "Muaz Khan",
"email": "muazkh@gmail.com",
Expand Down
8 changes: 5 additions & 3 deletions widget.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Last time updated: 2018-12-17 10:32:34 AM UTC
// Last time updated: 2018-12-19 10:54:19 AM UTC

// _______________
// Canvas-Designer
Expand Down Expand Up @@ -2967,8 +2967,9 @@
image.src = data_uris.dragSingle;
}

decorateDragLastPath();

if (tools.dragSingle === true) {
decorateDragLastPath();
document.getElementById('drag-last-path').style.display = 'block';
}

Expand All @@ -2983,8 +2984,9 @@
image.src = data_uris.dragMultiple;
}

decorateDragAllPaths();

if (tools.dragMultiple === true) {
decorateDragAllPaths();
document.getElementById('drag-all-paths').style.display = 'block';
}

Expand Down
4 changes: 2 additions & 2 deletions widget.min.js

Large diffs are not rendered by default.

0 comments on commit 088a6aa

Please sign in to comment.