From f0e582073058e7917c97a76c0d85eb92978187a7 Mon Sep 17 00:00:00 2001
From: Feng Wang <331749055@qq.com>
Date: Tue, 15 Dec 2015 18:51:14 +0800
Subject: [PATCH 1/2] Update jquery.Jcrop.js
add setting support of select area border style
---
js/jquery.Jcrop.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/js/jquery.Jcrop.js b/js/jquery.Jcrop.js
index 09b1bcf7..1157f82a 100644
--- a/js/jquery.Jcrop.js
+++ b/js/jquery.Jcrop.js
@@ -358,7 +358,10 @@
var c = Coords.getFixed();
options.onDblClick.call(api,c);
}).insertBefore($img).append($img_holder, $hdl_holder);
-
+
+ if (options.addBorderClas) {
+ $img_holder.addClass(options.addBorderClass);
+ }
if (img_mode) {
$img2 = $('
')
From 05deb48d20aa7b6cbe2d169c50860dcf8cbf30ea Mon Sep 17 00:00:00 2001
From: Feng Wang <331749055@qq.com>
Date: Tue, 15 Dec 2015 18:54:43 +0800
Subject: [PATCH 2/2] Update jquery.Jcrop.js
add setting support of select area style
---
js/jquery.Jcrop.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/js/jquery.Jcrop.js b/js/jquery.Jcrop.js
index 1157f82a..6800a639 100644
--- a/js/jquery.Jcrop.js
+++ b/js/jquery.Jcrop.js
@@ -359,9 +359,10 @@
options.onDblClick.call(api,c);
}).insertBefore($img).append($img_holder, $hdl_holder);
- if (options.addBorderClas) {
+ if (options.addBorderClass) {
$img_holder.addClass(options.addBorderClass);
}
+
if (img_mode) {
$img2 = $('
')