quick_script 0.5.11 → 0.5.12

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.11"
2
+ VERSION = "0.5.12"
3
3
  end
Binary file
@@ -124,7 +124,7 @@ Overlay.add = (vm, tmp, options, cls) ->
124
124
  cls = cls || ''
125
125
  options = {} if !options?
126
126
  options['z-index'] = Overlay.instance.zindex + 10
127
- $('body').prepend("<div class='backdrop' id='backdrop-#{id}' style='z-index: #{(Overlay.instance.zindex + 9)}'></div><div id='overlay-" + id + "' class='overlay'><div class='content' data-bind=\"template: '" + template + "'\"></div></div>")
127
+ $('body').prepend("<div class='backdrop' id='backdrop-#{id}' style='z-index: #{(Overlay.instance.zindex + 9)}'></div><div id='overlay-" + id + "' class='overlay'><img class='overlay-close' src='/assets/remove.png' data-bind='click : hideOverlay'/><div class='content' data-bind=\"template: '" + template + "'\"></div></div>")
128
128
  $('#overlay-' + id).css(options)
129
129
  $('#overlay-' + id).addClass(cls)
130
130
  $('#overlay-' + id).css({'margin-left' : -1 * $('#overlay-' + id).width() / 2})
@@ -664,6 +664,7 @@ class @Collection
664
664
  for item in @items()
665
665
  objs.push(item.toAPI())
666
666
  objs
667
+ JSON.stringify(objs)
667
668
 
668
669
  Collection.REPLACE = 0
669
670
  Collection.INSERT = 1
@@ -57,6 +57,13 @@
57
57
  +border-radius
58
58
  margin-bottom: 10px
59
59
 
60
+ img.overlay-close
61
+ +p-abs
62
+ top: -20px
63
+ right: -20px
64
+ width: 40px
65
+ z-index: inherit
66
+
60
67
  .notify
61
68
  +padded
62
69
  +p-fix
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: 29
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 11
10
- version: 0.5.11
9
+ - 12
10
+ version: 0.5.12
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-20 00:00:00 Z
18
+ date: 2012-06-22 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  description: Framework for single-page web applications
@@ -40,6 +40,7 @@ files:
40
40
  - lib/quick_script/railtie.rb
41
41
  - lib/quick_script/version.rb
42
42
  - quick_script.gemspec
43
+ - vendor/assets/images/remove.png
43
44
  - vendor/assets/images/tip-twitter_arrows.gif
44
45
  - vendor/assets/javascripts/quick_script.js
45
46
  - vendor/assets/javascripts/quick_script/classes.js.coffee