quick_script 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
data/lib/quick_script/version.rb
CHANGED
@@ -38,16 +38,17 @@
|
|
38
38
|
opts.on_err() if opts.on_err?
|
39
39
|
|
40
40
|
ko.bindingHandlers.cropImage =
|
41
|
-
|
41
|
+
update : (element, valueAccessor) ->
|
42
42
|
opts = valueAccessor()
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
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
|
-
@
|
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:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
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-
|
18
|
+
date: 2012-04-24 00:00:00 Z
|
19
19
|
dependencies: []
|
20
20
|
|
21
21
|
description: Framework for single-page web applications
|