atlas_assets 0.8.8 → 0.8.9
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZWEwNDdkOTdiZTY0YzBmZjgyOWQyZDBhY2Y1OTZiYTM2ZTgzN2Y3OA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZGYwZDJjNjZiMGFhZmIzZmE0NWZiY2U3ZjA2MzcwYTg1MTQ4NTExNw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NWE2ZDY4OGRjM2RjZDkwNWQ3ZjFmNDA3MGFkYWViZWNhNDU4NmM3NTc0NDhm
|
10
|
+
YmM2YWE1ZmJjMDlhMzY3ZmQ2NDkzYzBmZjk0YjkyNGEyODM5ZjQ1YWM1YTUz
|
11
|
+
YThmZGNjNTFlOTQ1NjI0NDM5NjJlYjg3MmFlZjljMTdlYTgzYzI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
M2E1NmExMzI3YmY0ZTg0OWFhNzVhMzYxMTc3YWEwNjI3N2U1MzkwMzEwZGEx
|
14
|
+
ZTllNThmYmMyNTVmNWUxNjliMTdiMzE1ZWQ3YWVjOWRhNmVkOTgxYmVkZWZh
|
15
|
+
YjE2YzJlMmRlMDQwNjAwZGI0NjI2MjE2NmZkMzU1ODU4NzdhOGU=
|
@@ -22,7 +22,7 @@ class classes.SelectView extends Backbone.View
|
|
22
22
|
|
23
23
|
@label = if options.label then options.label else @defaults.label
|
24
24
|
@value = if options.value then options.value else false
|
25
|
-
@
|
25
|
+
@default_to= if options.default_to then options.default_to else false
|
26
26
|
@sort = if options.sort? then options.sort else @defaults.sort
|
27
27
|
@helper =options.helper if options.helper?
|
28
28
|
|
@@ -64,9 +64,9 @@ class classes.SelectView extends Backbone.View
|
|
64
64
|
set_model_attributes: (model) =>
|
65
65
|
model.set('label',model.get(@label))
|
66
66
|
model.set('value',model.get(@value)) if @value
|
67
|
-
if @
|
67
|
+
if @default_to and @value and @default_to is model.get(@value)
|
68
68
|
model.set('selected',true)
|
69
|
-
else if @
|
69
|
+
else if @default_to and !@value and @default_to is model.get(@label)
|
70
70
|
model.set('selected',true)
|
71
71
|
else
|
72
72
|
|
data/lib/atlas_assets/version.rb
CHANGED
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.
|
4
|
+
version: 0.8.9
|
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-10-
|
11
|
+
date: 2014-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: handlebars_assets
|