quick_script 0.9.9 → 0.9.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
@@ -210,6 +210,9 @@ Overlay.remove = (id) ->
|
|
210
210
|
Overlay.removePopovers = ->
|
211
211
|
$('.popover').remove()
|
212
212
|
|
213
|
+
Overlay.isVisible = (id) ->
|
214
|
+
$('#overlay-' + id).length > 0
|
215
|
+
|
213
216
|
Overlay.popover = (el, vm, tmp, opts)->
|
214
217
|
id = vm.name
|
215
218
|
opts.placement = opts.placement || 'bottom'
|
@@ -235,6 +238,9 @@ Overlay.popover = (el, vm, tmp, opts)->
|
|
235
238
|
when 'right'
|
236
239
|
tp = {top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width}
|
237
240
|
|
241
|
+
tp.top = 0 if tp.top < 0
|
242
|
+
tp.left = 0 if tp.left < 0
|
243
|
+
|
238
244
|
tp.display = 'block'
|
239
245
|
$po.css(tp).addClass(opts.placement).addClass('in')
|
240
246
|
|
@@ -295,7 +295,7 @@
|
|
295
295
|
ko.validate_for = (field, fn, msg, self) ->
|
296
296
|
self.validations = {} unless self.validations?
|
297
297
|
self.validations[field] = [] unless self.validations[field]?
|
298
|
-
self.validations[field].push {test : fn, msg : msg}
|
298
|
+
self.validations[field].push {test : fn.bind(self), msg : msg}
|
299
299
|
self[field].is_valid = ko.computed ->
|
300
300
|
valid = true
|
301
301
|
for val_obj in self.validations[field]
|
@@ -884,6 +884,8 @@ class @View
|
|
884
884
|
Overlay.popover(el, this, tmp, opts)
|
885
885
|
hideOverlay : =>
|
886
886
|
Overlay.remove(@name)
|
887
|
+
overlayVisible : =>
|
888
|
+
Overlay.isVisible(@name)
|
887
889
|
|
888
890
|
class @ModelAdapter
|
889
891
|
constructor : (opts)->
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 9
|
8
|
-
-
|
9
|
-
version: 0.9.
|
8
|
+
- 10
|
9
|
+
version: 0.9.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-10-
|
17
|
+
date: 2012-10-10 00:00:00 -04:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|