server-generated-popups 1.1.7 → 1.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/popup.js +3 -3
- data/server-generated-popups.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56b73807e28067c336596dbdeb473e86c5c48914
|
4
|
+
data.tar.gz: 93061539edc755131257f617cce53cfffc9e114e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f443e807888e473e8ab5141d57951a5fff9bff7ef4db10168704ea62a8cf54832460297341c172d782d7991e4c239fb7eea1b171bffb82b909e861d4aa12ac7
|
7
|
+
data.tar.gz: 53133314ec360923dc25b3d3bc376d7ac7d041ea40292d144e122a0c345b7923b17c391cdc5e9f640befbafb1026580ee5d21ca8da4bf370185a2ef31868760c
|
@@ -23,13 +23,13 @@ PopupClass.prototype.move = function (from, to, callback) {
|
|
23
23
|
|
24
24
|
PopupClass.prototype.show = function (direction, callback) {
|
25
25
|
$('body').append(this.popupWindow)
|
26
|
-
startFrom = (direction == 'up') ? '
|
26
|
+
startFrom = (direction == 'up') ? '180%' : '-80%'
|
27
27
|
this.move(startFrom, this.distanceFromTop, callback)
|
28
28
|
return this;
|
29
29
|
}
|
30
30
|
PopupClass.prototype.hide = function (direction) {
|
31
|
-
moveTo = (direction == 'down') ? '
|
31
|
+
moveTo = (direction == 'down') ? '180%' : '-80%'
|
32
32
|
this.move(this.distanceFromTop, moveTo, function () {
|
33
|
-
this.
|
33
|
+
this.remove() // this == $('.popup') here
|
34
34
|
})
|
35
35
|
}
|