diff --git a/CHANGELOG.md b/CHANGELOG.md
index 25d0c66..82284ec 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+
+# 1.2.1 (2016-09-28)
+- add new setting **loadHtml2canvas**
+
# 1.2.0 (2016-06-28)
@@ -17,4 +21,4 @@
- **moved button html to property in settings.tpl**
- **added CSS file to main** CSS file now in bower main property.
- **published to npm** `npm install angular-send-feedback`.
-- **ajaxURL optionally a function** ajaxURL property can be either a string or a function.
\ No newline at end of file
+- **ajaxURL optionally a function** ajaxURL property can be either a string or a function.
diff --git a/README.md b/README.md
index 690e322..4473d27 100644
--- a/README.md
+++ b/README.md
@@ -155,6 +155,12 @@ Sets border of the highlighted area.
`Default: 3`
+### loadHtml2Canvas (Boolean)
+
+By Setting this false the user will have to include html2canvas library your self, the setting html2canvasURL will be ignored
+
+`Default: true`
+
### html2canvasURL (String)
The URL where the plugin can download html2canvas.js from.
@@ -218,4 +224,4 @@ Sets whether the user will be able to drag the feedback options modal or not
## //TODO List
-* Pulling jQuery out into a more classical AngularJS Directive rather than just wrapping the jQuery plugin.
\ No newline at end of file
+* Pulling jQuery out into a more classical AngularJS Directive rather than just wrapping the jQuery plugin.
diff --git a/dist/angular-send-feedback.js b/dist/angular-send-feedback.js
index c24aa56..90471f0 100644
--- a/dist/angular-send-feedback.js
+++ b/dist/angular-send-feedback.js
@@ -1,18 +1,18 @@
-/**
- * Angular feedback directive similar to Google Feedback
- * @version v1.2.0 - 2016-06-28 * @link https://github.com/jacobscarter/angular-feedback
- * @author Jacob Carter
- * @license MIT License, http://www.opensource.org/licenses/MIT
- */
-angular.module('templates-angularsendfeedback', ['angularsendfeedback.html']);
-
-angular.module("angularsendfeedback.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("angularsendfeedback.html",
- "");
-}]);
-
+/**
+ * Angular feedback directive similar to Google Feedback
+ * @version v1.2.1 - 2016-12-01 * @link https://github.com/jacobscarter/angular-feedback
+ * @author Jacob Carter
+ * @license MIT License, http://www.opensource.org/licenses/MIT
+ */
+angular.module('templates-angularsendfeedback', ['angularsendfeedback.html']);
+
+angular.module("angularsendfeedback.html", []).run(["$templateCache", function($templateCache) {
+ $templateCache.put("angularsendfeedback.html",
+ "");
+}]);
+
angular.module('angular-send-feedback', ['templates-angularsendfeedback']);
-
+
angular.module('angular-send-feedback').directive('angularFeedback', [ function() {
@@ -48,6 +48,7 @@ angular.module('angular-send-feedback').directive('angularFeedback', [ function(
shadowBlur: 10,
lineJoin: 'bevel',
lineWidth: 3,
+ loadHtml2canvas: true,
html2canvasURL: 'html2canvas.js',
feedbackButton: '.feedback-btn',
showDescriptionModal: true,
@@ -77,7 +78,7 @@ angular.module('angular-send-feedback').directive('angularFeedback', [ function(
if(isFeedbackButtonNative) {
$(this).hide();
}
- if (!_html2canvas) {
+ if(!settings.loadHtml2canvas) {
$.getScript(settings.html2canvasURL, function() {
_html2canvas = true;
});
diff --git a/dist/angular-send-feedback.min.js b/dist/angular-send-feedback.min.js
index dfc062e..22ffd86 100644
--- a/dist/angular-send-feedback.min.js
+++ b/dist/angular-send-feedback.min.js
@@ -1,7 +1,7 @@
/**
* Angular feedback directive similar to Google Feedback
- * @version v1.2.0 - 2016-06-28 * @link https://github.com/jacobscarter/angular-feedback
+ * @version v1.2.1 - 2016-12-01 * @link https://github.com/jacobscarter/angular-feedback
* @author Jacob Carter
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
-angular.module("templates-angularsendfeedback",["angularsendfeedback.html"]),angular.module("angularsendfeedback.html",[]).run(["$templateCache",function(a){a.put("angularsendfeedback.html","")}]),angular.module("angular-send-feedback",["templates-angularsendfeedback"]),angular.module("angular-send-feedback").directive("angularFeedback",[function(){return{restrict:"EA",replace:!0,transclude:!0,scope:{options:"="},link:function(a,b,c){!function(a){a.feedback=function(b){function c(){canDraw=!1,a(document).off("mouseenter mouseleave",".feedback-helper"),a(document).off("mouseup keyup"),a(document).off("mousedown",".feedback-setblackout"),a(document).off("mousedown",".feedback-sethighlight"),a(document).off("mousedown click","#feedback-close"),a(document).off("mousedown","#feedback-canvas"),a(document).off("click","#feedback-highlighter-next"),a(document).off("click","#feedback-highlighter-back"),a(document).off("click","#feedback-welcome-next"),a(document).off("click","#feedback-overview-back"),a(document).off("mouseleave","body"),a(document).off("mouseenter",".feedback-helper"),a(document).off("selectstart dragstart",document),a("#feedback-module").off("click",".feedback-wizard-close,.feedback-close-btn"),a(document).off("click","#feedback-submit"),f.highlightElement&&(a(document).off("click","#feedback-canvas"),a(document).off("mousemove","#feedback-canvas")),a('[data-highlighted="true"]').removeAttr("data-highlight-id").removeAttr("data-highlighted"),a("#feedback-module").remove(),a(".feedback-btn").show(),f.onClose.call(this)}function d(b,c){c="undefined"!=typeof c?c:!0,b.clearRect(0,0,a("#feedback-canvas").width(),a("#feedback-canvas").height()),b.fillStyle="rgba(102,102,102,0.5)",b.fillRect(0,0,a("#feedback-canvas").width(),a("#feedback-canvas").height()),a(".feedback-helper").each(function(){"highlight"==a(this).attr("data-type")&&c&&e(b,parseInt(a(this).css("left"),10),parseInt(a(this).css("top"),10),a(this).width(),a(this).height())}),a(".feedback-helper").each(function(){"highlight"==a(this).attr("data-type")&&b.clearRect(parseInt(a(this).css("left"),10),parseInt(a(this).css("top"),10),a(this).width(),a(this).height())}),a(".feedback-helper").each(function(){"blackout"==a(this).attr("data-type")&&(b.fillStyle="rgba(0,0,0,1)",b.fillRect(parseInt(a(this).css("left"),10),parseInt(a(this).css("top"),10),a(this).width(),a(this).height()))})}function e(a,b,c,d,e){a.strokeStyle=f.strokeStyle,a.shadowColor=f.shadowColor,a.shadowOffsetX=f.shadowOffsetX,a.shadowOffsetY=f.shadowOffsetY,a.shadowBlur=f.shadowBlur,a.lineJoin=f.lineJoin,a.lineWidth=f.lineWidth,a.strokeRect(b,c,d,e),a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0,a.lineWidth=1}var f=a.extend({ajaxURL:"",postBrowserInfo:!0,postHTML:!0,postURL:!0,postTimeStamp:!0,proxy:void 0,letterRendering:!1,initButtonText:"Send feedback",strokeStyle:"black",shadowColor:"black",shadowOffsetX:1,shadowOffsetY:1,shadowBlur:10,lineJoin:"bevel",lineWidth:3,html2canvasURL:"html2canvas.js",feedbackButton:".feedback-btn",showDescriptionModal:!0,isDraggable:!0,onScreenshotTaken:function(){},tpl:{initButton:'',description:'
Feedback
Feedback lets you send us suggestions about our products. We welcome problem reports, feature ideas and general comments.
Start by writing a brief description:
Next we\'ll let you identify areas of the page related to your description.
Please enter a description.
',highlighter:'
Feedback
Click and drag on the page to help us better understand your feedback. You can move this dialog if it\'s in the way.
',overview:'
Feedback
Description
Additional info
None
Browser Info
Page Info
Time Stamp
Page Structure
Screenshot
Please enter a description.
',submitSuccess:'
Feedback
Thank you for your feedback. We value every piece of feedback we receive.
We cannot respond individually to every one, but we will use your comments as we strive to improve your experience.
',submitError:'
Feedback
Sadly an error occurred while sending your feedback. Please try again.