nifty-dialog 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4dbc4286daf06141a0ab59c26c864008d21f1c46
|
4
|
+
data.tar.gz: b385211dfa36019b2e99b1960dd45dc3da132743
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4f0f9bf00a910ee2124519e77a973cc54530e8ab7bfe17b678b92d7f1b551fe68ee0c07538025f2939cd2b66fea1ab421c83fb3016153d7f489109a5af8ef5a
|
7
|
+
data.tar.gz: 2526a6fae0737d9f60b642c4865bead6b4416d883b9272759017af94a2b94ea7183283d48a685deba3aa09b3a382f097399db0477b39c16961397c2110c81e9d
|
data/lib/nifty/dialog/version.rb
CHANGED
@@ -65,17 +65,21 @@ window.Nifty.Dialog =
|
|
65
65
|
# if we have a width, set the width for the dialog
|
66
66
|
if options.width?
|
67
67
|
insertedDialog.css('width', "#{options.width}px")
|
68
|
-
insertedDialog.css('margin-left', "-#{options.width / 2}px")
|
69
68
|
|
70
69
|
if options.offset?
|
71
|
-
insertedDialog.css('
|
70
|
+
insertedDialog.css('top', "#{options.offset}px")
|
71
|
+
insertedDialog.css('left', "#{options.offset}px")
|
72
72
|
|
73
73
|
if options.stack?
|
74
|
-
|
75
|
-
|
74
|
+
currentLeft = insertedDialog.css('left')
|
75
|
+
currentTop = insertedDialog.css('left')
|
76
|
+
currentLeft = 0 if currentLeft == 'auto'
|
77
|
+
currentTop = 0 if currentTop == 'auto'
|
78
|
+
x = parseInt(currentLeft, 10) + (dialogsOpen * 20)
|
79
|
+
y = parseInt(currentTop, 10) + (dialogsOpen * 30)
|
76
80
|
insertedDialog.css
|
77
|
-
'
|
78
|
-
'
|
81
|
+
'left': "#{x}px"
|
82
|
+
'top': "#{y}px"
|
79
83
|
|
80
84
|
|
81
85
|
# Set the closing action for the inserted dialog to close dialog
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nifty-dialog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Cooke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A javascript library for working with dialogs
|
14
14
|
email:
|