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
- YTczOWNhNjBhYzQ2Y2UwMTQwMzM0MWQwZWMwOTlkY2E2Nzc5NmU3OA==
4
+ ZWEwNDdkOTdiZTY0YzBmZjgyOWQyZDBhY2Y1OTZiYTM2ZTgzN2Y3OA==
5
5
  data.tar.gz: !binary |-
6
- ZGFlMGQ4ODM5NjZhOWE5ZmEwOTIyZjk3M2VhNzBiZWYxMDM3MTNkYg==
6
+ ZGYwZDJjNjZiMGFhZmIzZmE0NWZiY2U3ZjA2MzcwYTg1MTQ4NTExNw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZjA4Y2RhMzQxY2U3MWUxZGU2YTc1YWQ3MDdlY2YzMGZlNDE2ZDIwZWQ0YTg0
10
- ODhmMmU3NzgwZTdkNWYxYzNmNzk3Nzk5ZTk0NGY2NzlhYTNkOTFlMzQ0ZmEz
11
- YzhkOGQzZGViMWExMzZlNjI4MTY4NjNkMWFiZjc3YWYxNmJhMjA=
9
+ NWE2ZDY4OGRjM2RjZDkwNWQ3ZjFmNDA3MGFkYWViZWNhNDU4NmM3NTc0NDhm
10
+ YmM2YWE1ZmJjMDlhMzY3ZmQ2NDkzYzBmZjk0YjkyNGEyODM5ZjQ1YWM1YTUz
11
+ YThmZGNjNTFlOTQ1NjI0NDM5NjJlYjg3MmFlZjljMTdlYTgzYzI=
12
12
  data.tar.gz: !binary |-
13
- NGRiNmQzMWYwZDhjNTVmYTJkODJhOTgyZDc5NmFlOWNmMGI3ZGNlMmZkNmQ2
14
- YmIzODkwNTI0YzA0MjM2ODlkMDg3NDJjYWQwYzE1NTU3NzAxNGQyNzAyOTBi
15
- MmYzNzNhYmE1M2ZlN2Q3YWZjNmZlMTRjYzFkMzRlYTc3MDg4YmY=
13
+ M2E1NmExMzI3YmY0ZTg0OWFhNzVhMzYxMTc3YWEwNjI3N2U1MzkwMzEwZGEx
14
+ ZTllNThmYmMyNTVmNWUxNjliMTdiMzE1ZWQ3YWVjOWRhNmVkOTgxYmVkZWZh
15
+ YjE2YzJlMmRlMDQwNjAwZGI0NjI2MjE2NmZkMzU1ODU4NzdhOGU=
@@ -79,7 +79,7 @@ var select2b = new classes.SelectView({
79
79
  label: "prettyname",
80
80
  value: "name",
81
81
  sort: false,
82
- default: 'chapter'
82
+ default_to: 'chapter'
83
83
  })
84
84
  $('#collection-example-b').html(select2b.render().el)
85
85
 
@@ -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
- @default= if options.default then options.default else false
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 @default and @value and @default is model.get(@value)
67
+ if @default_to and @value and @default_to is model.get(@value)
68
68
  model.set('selected',true)
69
- else if @default and !@value and @default is model.get(@label)
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
 
@@ -1,5 +1,5 @@
1
1
  module Atlas
2
2
  module Assets
3
- VERSION = "0.8.8"
3
+ VERSION = "0.8.9"
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.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-07 00:00:00.000000000 Z
11
+ date: 2014-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: handlebars_assets