quick_script 0.2.0 → 0.2.1
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.
data/lib/quick_script/version.rb
CHANGED
@@ -215,6 +215,9 @@
|
|
215
215
|
ret[prop] = obj[prop]
|
216
216
|
return ret
|
217
217
|
|
218
|
+
ko.addTemplate = (templateName, templateMarkup) ->
|
219
|
+
$('head').append("<script type='text/html' id='" + templateName + "'>" + templateMarkup + "<" + "/script>")
|
220
|
+
|
218
221
|
ko.modelStates = {}
|
219
222
|
ko.modelStates.READY = 1
|
220
223
|
ko.modelStates.LOADING = 2
|
@@ -733,6 +736,7 @@ class @AppView extends @View
|
|
733
736
|
@path = ko.observable(null)
|
734
737
|
@path_parts = []
|
735
738
|
@account_model = Model
|
739
|
+
ko.addTemplate "app-view", "<div data-bind=\"fadeVisible : is_visible(), template : { name : getViewName }, attr : { class : view_name}\"></div>"
|
736
740
|
super('app', null)
|
737
741
|
@current_user = new @account_model()
|
738
742
|
@is_logged_in = ko.dependentObservable ->
|
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: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
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-20 00:00:00 Z
|
19
19
|
dependencies: []
|
20
20
|
|
21
21
|
description: Framework for single-page web applications
|