atlas_assets 0.8.5 → 0.8.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDcxYmRhYmI4Njg4ODQxNjRmZTM0NzFkMGFhMjI1ODZkMjFlNDI4ZA==
4
+ YzE4ZDZmMjUxYmI5YWExYjU4YWM3ODQ5ZjAwODFkY2RmNTk0MmVkMw==
5
5
  data.tar.gz: !binary |-
6
- MWZkNDJmYjRkMDFlM2Q0YzRiYjVlMTRiOGE2NGE1MTJhMTZlNzZiNw==
6
+ ZDEzMTE1MDgxYTNlNmQ2MzYyOWIxZjA0ZmVhN2M0OTRmZDU4ODg5Yg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZDlmNDMxNjgwMTYxMTZlM2E1MzBmNTRkYjM4ZmJkZDc2OTVlNWEyZDgyZTQz
10
- NjljMGJhODMyN2QxNTMyOGIzNGMyNjg3MGQyODQyNTQxNzVlNDEyN2ZjNjhl
11
- YzIxNDgwYjEzZTNjNTZiYjcxNmIyN2FlYzUwMWYyOGM0NzU0MTU=
9
+ ZGRhZWZiMzlkOWExOTdkOTI0ZDUyNjVhMzg3Yzk1Zjc1MDMzY2E4YTczYzhk
10
+ YTdmYjIwNzk0ZTcyZGNiNGJkZDA4MWU3NjE4MjIyZTZkOTE2ZGE5NDNmNTMz
11
+ M2M4OWE0M2Q3NjE2ZGQ4ZGFmN2NlMmY2OTYzMzYxNzdlOTFkMGM=
12
12
  data.tar.gz: !binary |-
13
- MjdhZDk1ZTJhZDBmYTljMTc4MjVlZjQwNTU3NWM2NmM0Mzc1N2VmMzYxZGJk
14
- MTU3YWI0MTgyNzMxM2UxOTExNDM5MjUyMmJmMjlmOTFmOWViOWFhZDVhNTFj
15
- OWQ3MGZiNjEyMjMxZTczZjYwZDAwMjljZmQ1OWI3ZmY4ZjI5ZGU=
13
+ ZDY3ZTc0YTRjN2I3NmRiOGMzNzMyMzI2YWI2NmNmOWE5MmVmYTQwYmMxMTg5
14
+ OTFhMTZhZTk1YTY1ZTZkZDBlNTU2ZDU4Y2E4OTMxOTQ1NTZmOGI1ZjQ3NjAw
15
+ YjJmYjRjZmViYjE1OWEzMmM2OWJhY2FhMGYxYmI5N2EwY2RmNWQ=
data/Gemfile.lock CHANGED
@@ -12,7 +12,7 @@ GIT
12
12
  PATH
13
13
  remote: .
14
14
  specs:
15
- atlas_assets (0.8.4)
15
+ atlas_assets (0.8.5)
16
16
  handlebars_assets (~> 0.15)
17
17
 
18
18
  GEM
@@ -112,4 +112,78 @@ $(function () {
112
112
  var select_example = new Select({el: $('#select-example')[0]});
113
113
  select_example.on('change', function(e){ alert('You picked: '+e.value);})
114
114
  })
115
+ </script>
116
+
117
+ ## 4: Containing
118
+
119
+ Contain the drop element to a parent
120
+
121
+ <div class="some-container">
122
+ <button class='btn drop-example-4'>Hello, Click Me</button>
123
+ </div>
124
+
125
+ ~~~html
126
+ <div class="some-container">
127
+ <button class='btn drop-example-4'>Hello, Click Me</button>
128
+ </div>
129
+ ~~~
130
+ ~~~css
131
+ .some-container {
132
+ border: 1px solid black;
133
+ width: 400px;
134
+ height: 250px;
135
+ overflow: auto;
136
+ position: relative;
137
+ }
138
+ ~~~
139
+ ~~~js
140
+ $(function () {
141
+ var drop4;
142
+ drop4 = new Drop({
143
+ target: document.querySelector('.drop-example-4'),
144
+ content: 'Welcome to the whatever <pre>yadda yadda yadda yadda yadda yadda yadda yadda yadda</pre>',
145
+ position: 'bottom center',
146
+ classes: 'drop-theme-arrows-bounce',
147
+ openOn: 'click',
148
+ tetherOptions: {
149
+ constraints: [
150
+ {
151
+ to: 'scrollParent',
152
+ pin: true
153
+ }
154
+ ]
155
+ }
156
+ });
157
+ });
158
+ ~~~
159
+
160
+ <style>
161
+ .some-container {
162
+ border: 1px solid black;
163
+ width: 400px;
164
+ height: 250px;
165
+ overflow: auto;
166
+ position: relative;
167
+ }
168
+ </style>
169
+
170
+ <script>
171
+ $(function () {
172
+ var drop4;
173
+ drop4 = new Drop({
174
+ target: document.querySelector('.drop-example-4'),
175
+ content: 'Welcome to the whatever <pre>yadda yadda yadda yadda yadda yadda yadda yadda yadda</pre>',
176
+ position: 'bottom center',
177
+ classes: 'drop-theme-arrows-bounce',
178
+ openOn: 'click',
179
+ tetherOptions: {
180
+ constraints: [
181
+ {
182
+ to: 'scrollParent',
183
+ pin: true
184
+ }
185
+ ]
186
+ }
187
+ });
188
+ });
115
189
  </script>
@@ -16,7 +16,6 @@
16
16
  class classes.SelectView extends Backbone.View
17
17
 
18
18
  defaults: {label: 'label'}
19
- className: "select-dropdown"
20
19
 
21
20
  initialize: (options) ->
22
21
  @rendered = false
@@ -80,6 +79,6 @@ class classes.SelectView extends Backbone.View
80
79
 
81
80
  render: =>
82
81
  @collection.comparator = "label"
83
- @$el.html(@template({models:@collection.sort().models, helper:@helper}))
82
+ @$el.html(@template({models:@collection.sort().models, helper:@helper})).addClass("select-dropdown")
84
83
  @trigger('rendered') if !@rendered
85
84
  @
@@ -1,5 +1,5 @@
1
1
  module Atlas
2
2
  module Assets
3
- VERSION = "0.8.5"
3
+ VERSION = "0.8.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atlas_assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.5
4
+ version: 0.8.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rune Skjoldborg Madsen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-27 00:00:00.000000000 Z
11
+ date: 2014-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: handlebars_assets