thin_man 0.20.4 → 0.20.5

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: 40dff39c348f32f4f43c034eb305c87691abcd113a50cb618248a3e28ef0b023
4
- data.tar.gz: 90ae3bf0fb8632f36988681b4dfeef6adbc0c3d69bca16f4396afebcddb1924b
3
+ metadata.gz: 16a9c0add2ae2f5b1a22f83eb8e396004e4c1ed6567949729e4d93dc14d684ad
4
+ data.tar.gz: 797344b4ff4cdcf12aa54fb7cb8a86f5f4f94175b8a04d222dcae2fc6b412ffb
5
5
  SHA512:
6
- metadata.gz: 8c92fb9b47e882d1aa7cb4006086367519b8eaec37f12f4cf4a8e8f8657b74028c175f0855ce77379f9927227bdd9777ee201a70dfcb8a2907080a8b9efcaa83
7
- data.tar.gz: a06040297179ba28373aefd2cc77344866995cd34f629c961875bda0186e65e9c89766c36bce77d3cdee294a85f56b916e578a6d623050d0c366eedddcf50980
6
+ metadata.gz: 405683d427ff7d49c2e0e1b0213a74841b5ef03cb906c3d363d3bf7e5bd52d3d63149cad9e4c90067b07fbd62d053afa2573419c829d6cca42f57d323adacc62
7
+ data.tar.gz: 34889c082b58035fa454eac42293812e2a011fc165e990b0fa34bcf5aa4cf5750e31619e1567b7d444c845f9ab6082a2bf40eed682a4118a15c2947c96d637bf
@@ -208,7 +208,7 @@ var initThinMan = function() {
208
208
  } else if (typeof data === 'object') {
209
209
  if (typeof data.html != 'undefined') {
210
210
  if (typeof data.hooch_modal != 'undefined') {
211
- new hooch.Modal($(data.html))
211
+ new hooch.Modal($(data.html),data.dismissable)
212
212
  } else {
213
213
  this.insertHtml(data.html)
214
214
  }
@@ -379,7 +379,11 @@ var initThinMan = function() {
379
379
  debug_logger.log("thin_man.AjaxSubmission.ajaxError data is an object.", 1, 'thin-man')
380
380
  if (typeof data.html != 'undefined') {
381
381
  debug_logger.log("thin_man.AjaxSubmission.ajaxError data.html exists, inserting into target.", 1, 'thin-man')
382
- this.error_target.html(data.html);
382
+ if (typeof data.hooch_modal != 'undefined') {
383
+ new hooch.Modal($(data.html),data.dismissable)
384
+ } else {
385
+ this.error_target.html(data.html);
386
+ }
383
387
  }
384
388
  }
385
389
  } else if (jqXHR.status == 500) {
@@ -1,3 +1,3 @@
1
1
  module ThinMan
2
- VERSION = "0.20.4"
2
+ VERSION = "0.20.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thin_man
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.4
4
+ version: 0.20.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Draut, Adam Bialek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-02 00:00:00.000000000 Z
11
+ date: 2018-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails