quick_script 0.11.9 → 0.11.10
Sign up to get free protection for your applications and to get access to all the features.
data/lib/quick_script/version.rb
CHANGED
@@ -887,7 +887,7 @@ class @View
|
|
887
887
|
, 600
|
888
888
|
opts.slide_index(idx)
|
889
889
|
load : ->
|
890
|
-
reload :
|
890
|
+
reload : =>
|
891
891
|
@load()
|
892
892
|
addView : (name, view_class, tpl) ->
|
893
893
|
@views[name] = new view_class(name, this)
|
@@ -1081,6 +1081,7 @@ class @AppView extends @View
|
|
1081
1081
|
@path = ko.observable(null)
|
1082
1082
|
@previous_path = ko.observable(null)
|
1083
1083
|
@path_parts = []
|
1084
|
+
@title = ko.observable('')
|
1084
1085
|
ko.addTemplate "app-view", """
|
1085
1086
|
<div data-bind='foreach : viewList()'>
|
1086
1087
|
<div data-bind="fadeVisible : is_visible(), template : { name : getViewName, afterRender : afterRender}, attr : { id : templateID}, bindelem : true"></div>
|
@@ -1094,12 +1095,13 @@ class @AppView extends @View
|
|
1094
1095
|
</div>
|
1095
1096
|
"""
|
1096
1097
|
@current_user = new @account_model()
|
1097
|
-
@is_logged_in = ko.
|
1098
|
+
@is_logged_in = ko.computed ->
|
1098
1099
|
!@current_user.is_new()
|
1099
1100
|
, this
|
1100
1101
|
super('app', null)
|
1101
1102
|
route : (path) ->
|
1102
1103
|
console.log("Loading path '#{path}'")
|
1104
|
+
@setTitle(@name, true)
|
1103
1105
|
@previous_path(@path())
|
1104
1106
|
@path(path)
|
1105
1107
|
@path_parts = @path().split('/')
|
@@ -1112,6 +1114,13 @@ class @AppView extends @View
|
|
1112
1114
|
History.pushState(null, null, path)
|
1113
1115
|
runLater : (callback)->
|
1114
1116
|
setTimeout callback, 10
|
1117
|
+
setTitle : (title, setFull)->
|
1118
|
+
@title(title)
|
1119
|
+
setFull = setFull || false
|
1120
|
+
if setFull
|
1121
|
+
$('title').text(title)
|
1122
|
+
else
|
1123
|
+
$('title').text("#{@name} - #{title}")
|
1115
1124
|
|
1116
1125
|
@initApp = ->
|
1117
1126
|
appViewModel = @appViewModel
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 11
|
8
|
-
-
|
9
|
-
version: 0.11.
|
8
|
+
- 10
|
9
|
+
version: 0.11.10
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Alan Graham
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2012-11-
|
17
|
+
date: 2012-11-09 00:00:00 -05:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|