quick_script 0.5.9 → 0.5.10

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.5.9"
2
+ VERSION = "0.5.10"
3
3
  end
@@ -694,7 +694,7 @@ class @View
694
694
  @task.subscribe (val)=>
695
695
  if val != null
696
696
  left = @getViewBoxIndex(val) * @transition.opts.width * -1
697
- console.log(left)
697
+ #console.log(left)
698
698
  @transition.opts.slide_left(left)
699
699
  load : ->
700
700
  addView : (name, view_class, tpl) ->
@@ -831,12 +831,10 @@ class @AccountAdapter
831
831
  progress : opts.progress
832
832
  success : opts.success
833
833
  error : opts.error
834
- resetPassword : (callback)->
835
- @is_loading(true)
834
+ resetPassword : (login, callback)->
836
835
  opts = {}
837
- opts[@username_key] = @username()
836
+ opts[@login_key] = login
838
837
  $.post @reset_url, opts, (resp) =>
839
- @is_loading(false)
840
838
  callback(resp) if callback?
841
839
  send : (opts)->
842
840
  $.ajax_qs
@@ -854,7 +852,6 @@ class @AppView extends @View
854
852
  @app = this
855
853
  @path = ko.observable(null)
856
854
  @path_parts = []
857
- @account_model = Model
858
855
  ko.addTemplate "app-view", """
859
856
  <div data-bind='foreach : viewList()'>
860
857
  <div data-bind="fadeVisible : is_visible(), template : { name : getViewName }, attr : { id : templateID}"></div>
@@ -870,11 +867,11 @@ class @AppView extends @View
870
867
  <div style='clear: both;'></div>
871
868
  </div>
872
869
  """
873
- super('app', null)
874
870
  @current_user = new @account_model()
875
871
  @is_logged_in = ko.dependentObservable ->
876
872
  !@current_user.is_new()
877
873
  , this
874
+ super('app', null)
878
875
  route : (path) ->
879
876
  console.log("Loading path '#{path}'")
880
877
  @path(path)
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: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 9
10
- version: 0.5.9
9
+ - 10
10
+ version: 0.5.10
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-15 00:00:00 Z
18
+ date: 2012-06-17 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  description: Framework for single-page web applications