quick_script 0.5.3 → 0.5.4
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
@@ -598,6 +598,7 @@ class @Collection
|
|
598
598
|
hasItems : ->
|
599
599
|
@items().length > 0
|
600
600
|
addItem : (item)->
|
601
|
+
item.collection = this
|
601
602
|
cls = @view_model()
|
602
603
|
view = new cls("view-#{item.id()}", @view_owner(), item)
|
603
604
|
@items.push(item)
|
@@ -778,6 +779,7 @@ class @AccountAdapter
|
|
778
779
|
@enter_code_url = "/account/enter_code"
|
779
780
|
@reset_url = "/account/reset"
|
780
781
|
@save_url = "/account/save"
|
782
|
+
@load_url = "/account/load"
|
781
783
|
@login_key = "email"
|
782
784
|
@password_key = "password"
|
783
785
|
for prop,val of opts
|
@@ -803,6 +805,15 @@ class @AccountAdapter
|
|
803
805
|
progress : opts.progress
|
804
806
|
success : opts.success
|
805
807
|
error : opts.error
|
808
|
+
load : (opts) ->
|
809
|
+
opts ||= {}
|
810
|
+
$.ajax_qs
|
811
|
+
type : 'POST'
|
812
|
+
url : @load_url
|
813
|
+
data : opts.data
|
814
|
+
progress : opts.progress
|
815
|
+
success : opts.success
|
816
|
+
error : opts.error
|
806
817
|
resetPassword : (callback)->
|
807
818
|
@is_loading(true)
|
808
819
|
opts = {}
|
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: 3
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 4
|
10
|
+
version: 0.5.4
|
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-06-
|
18
|
+
date: 2012-06-08 00:00:00 Z
|
19
19
|
dependencies: []
|
20
20
|
|
21
21
|
description: Framework for single-page web applications
|