wcc-styles 3.0.0.beta5 → 3.0.0.beta6

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
  SHA1:
3
- metadata.gz: 4e77b6cf247b5dac4ce32be82e580089adc84a68
4
- data.tar.gz: c653ef4ef5261339b26d19f0c6294c2f3220e5ad
3
+ metadata.gz: faef8746b2af1990f13893c0f368720efc8042f6
4
+ data.tar.gz: dc8520382c1b2e8a96a70738706a6711b55e5776
5
5
  SHA512:
6
- metadata.gz: 7e2dd6bc6bc748bc65dce7fc388c77d4d85944352fd17f160163eae58411e660ebfd13ceab03107014cf258bc7b7dbea8371b5ac879481d2f7d4fccd8da56c09
7
- data.tar.gz: e0668235bf036fd506a9a66c2446ffd200509bf20007ceea6680ef51d82a91c84d459524ca1854d5109a835bbc97b73a737072258b807fa537c5e25354ecacde
6
+ metadata.gz: ddac9890878f1e399f3d9edf2240c796954fb73a4a3201e09aaf07c0ca3430efb06377ea730e7b37f3aa095595ee24cea957e36627d8a74eb4cf499671981eb1
7
+ data.tar.gz: 30b50181e3faa6f6ef4c367be02b045b9f78a844fa1da33075d2e85ef68032b78c603cc670e7d19aead4af410411834e2f22d27f60946669baab6d8ecb4b4ab1
@@ -116,8 +116,9 @@ WCC.Dropzone.prototype.defaultOptions.accept = (file, done) ->
116
116
  error: (response) ->
117
117
  done("Failed to initiate the upload process!")
118
118
 
119
- $ ->
120
- $('form:has(.tessa-upload)').each (i, form) ->
119
+ window.WCC.tessaInit = (sel) ->
120
+ sel = sel || 'form:has(.tessa-upload)'
121
+ $(sel).each (i, form) ->
121
122
  $form = $(form)
122
123
  $form.bind 'submit', (event) ->
123
124
  safeToSubmit = true
@@ -128,7 +129,7 @@ $ ->
128
129
  if not safeToSubmit and not confirm(WCC.Dropzone.uploadPendingWarning)
129
130
  return false
130
131
 
131
- $('.tessa-upload').each (i, item) ->
132
+ $('.tessa-upload', sel).each (i, item) ->
132
133
  $item = $(item)
133
134
  args =
134
135
  maxFiles: 1
@@ -171,3 +172,5 @@ $ ->
171
172
  updateAction(file)
172
173
 
173
174
 
175
+ $ ->
176
+ window.WCC.tessaInit()
@@ -1,5 +1,5 @@
1
1
  module WCC
2
2
  module Styles
3
- VERSION = "3.0.0.beta5"
3
+ VERSION = "3.0.0.beta6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wcc-styles
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.beta5
4
+ version: 3.0.0.beta6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Watermark Community Church
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-03 00:00:00.000000000 Z
11
+ date: 2017-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coffee-rails
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
141
  version: 1.3.1
142
142
  requirements: []
143
143
  rubyforge_project:
144
- rubygems_version: 2.5.2
144
+ rubygems_version: 2.6.11
145
145
  signing_key:
146
146
  specification_version: 4
147
147
  summary: This gem holds the styles for Watermark's application patterns