thecore_ui_partial_snippets 1.1.13 → 1.1.14

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: 1011e10a8d6b312aa1db5003bdff3a50d04b5247ce672b56fc665d1155e5fed6
4
- data.tar.gz: 26470cc82deaa78961d33c32fc5096de5c03b7760e6d2467d1696396911e2631
3
+ metadata.gz: c371fe0c5be69de0e1d0c5054b53e9442f89b86379b3d9d2538d316d89a6e7ad
4
+ data.tar.gz: 238cabcdb3fda9595c37073618d71ceb43ec229a42b41392220a6ba0c178d645
5
5
  SHA512:
6
- metadata.gz: 66d8af454e1d88157c3c2e0fc682f422dd63fef7d336b187e91d29c03d75cac6bcce8859ac08908a9b16ece1ff3ba56750efad902ebae1bef385e1477db1d886
7
- data.tar.gz: cbaaed7cfe8ccc1f1294244888870e84229dc213582cf530b74b0f409ccdb885f6b5edf689878350f578f0b0bd4c12b510fb2a628369633419ef355d3c236b44
6
+ metadata.gz: ef365053aa3db2f537ab133c018c4b45b959c9111fc895c5e5d02ac6ccb34b5059b999dc26457191f682a2ddc47d53b9b64b738a5f7326ff0158f08b9416da58
7
+ data.tar.gz: a2e2e540a3e305d03b6053c38674a5d87386227dc5582e623057a595742183ab247a24a1e3581d052908ecb2616c5bdd0ff7b2a94f984d438d9ba7730fd0b1e8
@@ -28,7 +28,7 @@
28
28
  <div class="panel-body">
29
29
 
30
30
  <!-- Drop Zone -->
31
- <div class="upload-drop-zone" id="drop-zone">
31
+ <div class="upload-drop-zone" id="<%=target%>">
32
32
  <%=I18n.t :please_drag_and_drop_here%>
33
33
  </div>
34
34
 
@@ -38,26 +38,9 @@
38
38
  </div>
39
39
 
40
40
  <script>
41
- var fileUploadUrl;
42
41
  var fileupload = {
43
- // 'use strict';
42
+ dropZone: $('#<%=target%>'),
44
43
 
45
- // UPLOAD CLASS DEFINITION
46
- // ======================
47
-
48
- dropZone: $('<%=target%>'),
49
- // var uploadForm = document.getElementById('js-upload-form');
50
-
51
- // var startUpload = function(files) {
52
- // console.log(files)
53
- // }
54
-
55
- // uploadForm.addEventListener('submit', function(e) {
56
- // var uploadFiles = document.getElementById('js-upload-files').files;
57
- // e.preventDefault()
58
-
59
- // startUpload(uploadFiles)
60
- // })
61
44
  init: function(){
62
45
  this.dropZone.ondrop = this.ondrop;
63
46
  this.dropZone.ondragover = this.ondragover;
@@ -1,3 +1,3 @@
1
1
  module ThecoreUiPartialSnippets
2
- VERSION = '1.1.13'.freeze
2
+ VERSION = '1.1.14'.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.13
4
+ version: 1.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni