quick_script 0.5.5 → 0.5.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module QuickScript
2
- VERSION = "0.5.5"
2
+ VERSION = "0.5.7"
3
3
  end
@@ -396,6 +396,7 @@ class @Model
396
396
  success : (resp)=>
397
397
  @handleData(resp.data)
398
398
  callback(resp) if callback?
399
+ @collection.removeItemById(@id()) if ((resp.meta == 200) && @collection?)
399
400
  error : =>
400
401
  console.log("Delete error encountered")
401
402
  @model_state(ko.modelStates.READY)
@@ -628,6 +629,9 @@ class @Collection
628
629
  if callback(item, idx)
629
630
  @items.splice(idx, 1)
630
631
  @views.splice(idx, 1)
632
+ removeItemById : (id)->
633
+ @removeIf (item)=>
634
+ item.id() == id
631
635
  getTemplate : ->
632
636
  @template()
633
637
  reset : ->
@@ -846,10 +850,10 @@ class @AppView extends @View
846
850
  </div>
847
851
  """
848
852
  ko.addTemplate "app-slide", """
849
- <div data-bind="style : {width : transition.opts.width + 'px', overflowX : 'hidden'}">
853
+ <div data-bind="style : {width : transition.opts.width + 'px', height : transition.opts.height + 'px', overflowX : 'hidden', overflowY : 'hidden'}">
850
854
  <div class='view-slider' data-bind="style : {width : ((viewCount()+1) * transition.opts.width) + 'px', height : transition.opts.height + 'px', clear : 'both', marginLeft : transition.opts.slide_left() + 'px', 'position' : 'relative'}">
851
855
  <div data-bind='foreach : viewList()'>
852
- <div data-bind="template : { name : getViewName }, attr : {id : templateID}, style : {width : owner.transition.opts.width + 'px', left : ($index() * owner.transition.opts.width) + 'px', 'position' : 'absolute'}"></div>
856
+ <div data-bind="template : { name : getViewName }, attr : {id : templateID}, style : {width : owner.transition.opts.width + 'px', height : owner.transition.opts.height + 'px', left : ($index() * owner.transition.opts.width) + 'px', 'position' : 'absolute', overflowY : 'auto'}"></div>
853
857
  </div>
854
858
  </div>
855
859
  <div style='clear: both;'></div>
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: 1
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 5
10
- version: 0.5.5
9
+ - 7
10
+ version: 0.5.7
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-13 00:00:00 Z
18
+ date: 2012-06-14 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  description: Framework for single-page web applications