loft 0.4.0 → 0.4.1

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: 523861138105d45da2f415abcce810c7db3264b7
4
- data.tar.gz: c424e92dbf6d06e32c9afb835c7ee417d16e0af8
3
+ metadata.gz: f73211f88750c34279d9f4fb673a5450f4602d25
4
+ data.tar.gz: 250ea815dc01df994b0fdf01a91593cea96cacfc
5
5
  SHA512:
6
- metadata.gz: 15f5d2447dddb59cb49d4553c574bc49c3418c99e80874ec716d0364daf29e9b52d7dfc51284f2fecb4c4adb3915ae33c1edead49086bcd96ed54f926e0068b8
7
- data.tar.gz: 41bd0933ab33c0a07c5db72c762d7d2b0eceff99b6b407f01453b6e8b1b48f91ec0c2555fd8c8d0814049192b85bd4fdc85137c353c0b8103caaf9f8413d4f77
6
+ metadata.gz: cfcb121c68da5c12c45f155a5626d247c76bfc15c3c64ad24b58e90cccb4d5c31db7749fda021941ee4855314941519f2ee21017c5fc965be143dacb4727931d
7
+ data.tar.gz: b9cd3a151fb0054e7e76f0b5d0bc74f40650489906257022c9a4132413bd2bd6f4ecc9785d35dd839fcf21ba1dc9f0d09eae316dc75b4bfd77ac91668f8c4ce5
@@ -1,15 +1,15 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- loft (0.4.0)
5
- ants (>= 0.3.10)
4
+ loft (0.4.1)
5
+ ants (>= 0.3.14)
6
6
  carrierwave-mongoid (>= 0.7.1)
7
- chr (>= 0.5.4)
7
+ chr (>= 0.5.8)
8
8
  mini_magick (>= 4.1.0)
9
9
  mongoid-autoinc (>= 4.0.0)
10
10
  mongoid-grid_fs (>= 2.1.0)
11
11
  mongoid_search (>= 0.3)
12
- mongosteen (>= 0.1.8)
12
+ mongosteen (>= 0.2.0)
13
13
 
14
14
  GEM
15
15
  remote: http://rubygems.org/
@@ -49,7 +49,7 @@ GEM
49
49
  minitest (~> 5.1)
50
50
  thread_safe (~> 0.3, >= 0.3.4)
51
51
  tzinfo (~> 1.1)
52
- ants (0.3.13)
52
+ ants (0.3.14)
53
53
  devise
54
54
  meta-tags
55
55
  mongoid (>= 4.0)
@@ -70,11 +70,11 @@ GEM
70
70
  carrierwave (>= 0.8.0, < 0.11.0)
71
71
  mongoid (>= 3.0, < 6.0)
72
72
  mongoid-grid_fs (>= 1.3, < 3.0)
73
- chr (0.5.7)
73
+ chr (0.5.8)
74
74
  bourbon
75
75
  coffee-rails (>= 4.0)
76
76
  font-awesome-rails
77
- formagic (>= 0.3.9)
77
+ formagic (>= 0.3.10)
78
78
  jquery-rails
79
79
  rails (~> 4.2.5)
80
80
  sass-rails
@@ -99,7 +99,7 @@ GEM
99
99
  fast-stemmer (1.0.2)
100
100
  font-awesome-rails (4.5.0.0)
101
101
  railties (>= 3.2, < 5.0)
102
- formagic (0.3.9)
102
+ formagic (0.3.10)
103
103
  bourbon (>= 3.2)
104
104
  normalize-rails (>= 3.0)
105
105
  globalid (0.3.6)
@@ -78,12 +78,8 @@ class @LoftGroupActions
78
78
  object = @list.config.arrayStore.get(objectId)
79
79
  objects.push object
80
80
 
81
- if @loft.closeOnAccept
82
- @loft.onAcceptCallback(objects)
83
- @loft.closeModal()
84
-
85
- else
86
- @loft.onAcceptCallback(objects, => @loft.closeModal())
81
+ @loft.closeModal()
82
+ @loft.onAcceptCallback(objects)
87
83
 
88
84
  _show: ->
89
85
  @$el.show()
@@ -6,9 +6,9 @@
6
6
  # -----------------------------------------------------------------------------
7
7
  # Public methods:
8
8
  # new Loft(title, resource, resourcePath)
9
- # showAll(@selectMultipleAssets, @onAcceptCallback, @closeOnAccept)
10
- # showImages(@selectMultipleAssets, @onAcceptCallback, @closeOnAccept)
11
- # showDocuments(@selectMultipleAssets, @onAcceptCallback, @closeOnAccept)
9
+ # showAll(@selectMultipleAssets, @onAcceptCallback, @onCloseCallback)
10
+ # showImages(@selectMultipleAssets, @onAcceptCallback, @onCloseCallback)
11
+ # showDocuments(@selectMultipleAssets, @onAcceptCallback, @onCloseCallback)
12
12
  # closeModal()
13
13
  # -----------------------------------------------------------------------------
14
14
  class @Loft
@@ -131,13 +131,13 @@ class @Loft
131
131
 
132
132
  # PUBLIC ====================================================================
133
133
 
134
- showAll: (@selectMultipleAssets=false, @onAcceptCallback=$.noop, @closeOnAccept=true) ->
134
+ showAll: (@selectMultipleAssets=false, @onAcceptCallback=$.noop, @onCloseCallback=$.noop) ->
135
135
  @_show_modal(@module.rootList.tabLinks[0])
136
136
 
137
- showImages: (@selectMultipleAssets=false, @onAcceptCallback=$.noop, @closeOnAccept=true) ->
137
+ showImages: (@selectMultipleAssets=false, @onAcceptCallback=$.noop, @onCloseCallback=$.noop) ->
138
138
  @_show_modal(@module.rootList.tabLinks[1])
139
139
 
140
- showDocuments: (@selectMultipleAssets=false, @onAcceptCallback=$.noop, @closeOnAccept=true) ->
140
+ showDocuments: (@selectMultipleAssets=false, @onAcceptCallback=$.noop, @onCloseCallback=$.noop) ->
141
141
  @_show_modal(@module.rootList.tabLinks[2])
142
142
 
143
143
  closeModal: ->
@@ -145,3 +145,4 @@ class @Loft
145
145
  @_clear_assets_selection(@module.activeList)
146
146
  @module.$el.removeClass("module-modal")
147
147
  @module.hide()
148
+ @onCloseCallback?()
@@ -1,3 +1,3 @@
1
1
  module Loft
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
@@ -21,9 +21,9 @@ to upload, manage and insert file links to documents.
21
21
  s.files = `git ls-files`.split("\n")
22
22
  s.require_paths = ["lib"]
23
23
 
24
- s.add_dependency("chr", ">= 0.5.4")
25
- s.add_dependency("ants", ">= 0.3.10")
26
- s.add_dependency("mongosteen", ">= 0.1.8")
24
+ s.add_dependency("chr", ">= 0.5.8")
25
+ s.add_dependency("ants", ">= 0.3.14")
26
+ s.add_dependency("mongosteen", ">= 0.2.0")
27
27
  s.add_dependency("mongoid-autoinc", ">= 4.0.0")
28
28
  s.add_dependency("mongoid_search", ">= 0.3")
29
29
  s.add_dependency("mini_magick", ">= 4.1.0")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: loft
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Kravets
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-24 00:00:00.000000000 Z
11
+ date: 2015-12-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chr
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.5.4
19
+ version: 0.5.8
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 0.5.4
26
+ version: 0.5.8
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: ants
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 0.3.10
33
+ version: 0.3.14
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 0.3.10
40
+ version: 0.3.14
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: mongosteen
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 0.1.8
47
+ version: 0.2.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 0.1.8
54
+ version: 0.2.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: mongoid-autoinc
57
57
  requirement: !ruby/object:Gem::Requirement