quick_script 0.2.1 → 0.2.2

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.
@@ -1,3 +1,3 @@
1
1
  module QuickScript
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
@@ -38,16 +38,17 @@
38
38
  opts.on_err() if opts.on_err?
39
39
 
40
40
  ko.bindingHandlers.cropImage =
41
- init : (element, valueAccessor) ->
41
+ update : (element, valueAccessor) ->
42
42
  opts = valueAccessor()
43
- $(element).css
44
- background : 'url(' + ko.utils.unwrapObservable(opts[0]) + ')',
45
- backgroundSize: 'cover',
46
- 'background-position': 'center',
47
- backgroundColor: '#FFF',
48
- width: opts[1],
49
- height: opts[2],
50
- display: 'inline-block'
43
+ if opts[0]?
44
+ $(element).css
45
+ background : 'url(' + ko.utils.unwrapObservable(opts[0]) + ')',
46
+ backgroundSize: 'cover',
47
+ 'background-position': 'center',
48
+ backgroundColor: '#FFF',
49
+ width: opts[1],
50
+ height: opts[2],
51
+ display: 'inline-block'
51
52
 
52
53
  ko.bindingHandlers.tinymce =
53
54
  init : (element, valueAccessor, bindingsAccessor, viewModel) ->
@@ -591,7 +592,8 @@ class @View
591
592
  , this
592
593
  @is_visible = ko.observable(false)
593
594
  @is_loading = ko.observable(false)
594
- @errors = ko.observable([])
595
+ @error = ko.observable('')
596
+ @has_error = ko.computed (-> @error().length > 0), this
595
597
  @view = null
596
598
  @task = ko.observable(null)
597
599
  @init()
@@ -12,6 +12,8 @@ $dark-gray: rgba(0,0,0,.75)
12
12
  font-weight: bold
13
13
  =italic
14
14
  font-style: italic
15
+ =underline
16
+ text-decoration: underline
15
17
  =t-4
16
18
  font-size: 30px
17
19
  =t-3
@@ -28,6 +30,8 @@ $dark-gray: rgba(0,0,0,.75)
28
30
  text-align: center
29
31
  =f-ga
30
32
  font-family: 'Georgia'
33
+ =clickable
34
+ cursor: pointer
31
35
  =bfg($bg, $fg)
32
36
  background-color: $bg
33
37
  color: $fg
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quick_script
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 1
10
- version: 0.2.1
9
+ - 2
10
+ version: 0.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alan Graham
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-04-20 00:00:00 Z
18
+ date: 2012-04-24 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  description: Framework for single-page web applications