crimagify 0.0.3.4 → 0.0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -67,7 +67,7 @@ $(function(){
67
67
  };
68
68
  }
69
69
  });
70
-
70
+ /*===== Cancel Crop ======*/
71
71
  $(".nested_crimagify_images").on("click",".cancel_crop",function(evt){
72
72
  evt.preventDefault();
73
73
  $("#cropper_div").hide("slow", function(){
@@ -75,18 +75,24 @@ $(function(){
75
75
  });
76
76
  $(".nested_uploader").val('');
77
77
  });
78
-
79
- // $(".parent_image").on("click",".crop_image",function(){
78
+ $("#cancel_crop").on("click",function(evt){
79
+ evt.preventDefault();
80
+ $("#cropper_div").hide("slow", function(){
81
+ $("#cropper_div").remove();
82
+ });
83
+ $(".nested_uploader").val('');
84
+ });
85
+ /*====== Crop Image ========*/
86
+
80
87
  $(".nested_crimagify_images").on("click",".crop_image",function(){
81
88
  //parent_element_id is filled with the value of DIV parent closest: "imgA","imgB","imgZ"
82
89
  parameters($(this));
83
90
  });
84
-
85
- // $(".nested_crimagify_images").on("click", ".crop_image", function(){
86
- // var parent_element_id = $(this).closest('.global_parent').data("img");
87
- // console.log(parent_element_id);
88
- // //parameters(parent_element_id);
89
- //    });
91
+
92
+ $("#crop_image").on("click",function(){
93
+ //parent_element_id is filled with the value of DIV parent closest: "imgA","imgB","imgZ"
94
+ parameters($(this));
95
+ });
90
96
  });
91
97
 
92
98
 
@@ -1,3 +1,3 @@
1
1
  module Crimagify
2
- VERSION = "0.0.3.4"
2
+ VERSION = "0.0.3.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crimagify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3.4
4
+ version: 0.0.3.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: