thecore_ui_partial_snippets 1.1.15 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 13b60dd93240a3031e6899871cfc8988bb821419570bca55b108d9ebbf872da7
4
- data.tar.gz: 96df5ac94d1c5a04d862911729b89d57b1225f243c58b82840fa8d891ec1ccf2
3
+ metadata.gz: 436f554b2b3730375acdd7ece9c7a2500e91fd1da59911e36b9c23341ac69332
4
+ data.tar.gz: b8ffa99e894b78faead076ce6288e717316a1202069ab0fdfe5d5ac91c5c2ff5
5
5
  SHA512:
6
- metadata.gz: 526ab718cd30db793b2f9c3fc9e2b28db0e7b4023d11849d5a5edb77467568146024489a9f607e9b285fe10950f3b27776757281eabf0fd384215dec1b634bf5
7
- data.tar.gz: 5675d75fb6aaa0d6a56efc2caf673e8a00b32fcd5c9e7ccab752c545196eaae0786cf5ae87a1fd6d83bfab91d6ad11cefcd9f05c47fd2ca02ff0a8125691bc4e
6
+ metadata.gz: 609fd80b6ac3b9d716e4cd63f9c4e68c3cb618f9c3fa3bc3e20145519afb08f1534194233e3691ec398ed298696a578edca9eba13c0addd4d74d572f9cd2053e
7
+ data.tar.gz: ed6846230a4476e3daeb4ef9cef964ee3c1ea74ca37723fd5bc6021d67edec0e24979bdc650d0c9c243397f33552f099abf6d43eb4315d2ff0145e1de53b5178
@@ -49,6 +49,10 @@
49
49
  $('#<%=target%>').on("dragleave", this.ondragleave);
50
50
  },
51
51
 
52
+ beforeSuccess: function(){
53
+ console.log("beforeSuccess");
54
+ },
55
+
52
56
  ondrop: function (e) {
53
57
  // console.log(e)
54
58
  e.preventDefault();
@@ -68,7 +72,7 @@
68
72
  contentType: false,
69
73
  type: 'POST',
70
74
  success: function () {
71
-
75
+ fileupload.beforeSuccess();
72
76
  $("#<%=target%>-upload-drop-zone-feedback").html($("<span><%=I18n.t :upload_ok%></span>").delay(3000).fadeOut(400));
73
77
  }
74
78
  });
@@ -1,3 +1,3 @@
1
1
  module ThecoreUiPartialSnippets
2
- VERSION = '1.1.15'.freeze
2
+ VERSION = '1.2.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_ui_partial_snippets
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.15
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni