server-generated-popups 1.4.7 → 1.4.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 +2 -2
- data/demo/index.html +0 -2
- 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: f2a51a0c882bfd577cda398cbadeeec6ac4d2943
|
4
|
+
data.tar.gz: 9e97f18d4608439109f9436ddabc837328e91a01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e5f60047ae057d76c63739562902be3716a025efcf0617508cd75f35606cff9e0690868b8c38bea098c0ba17b900841dbcc189e94553e804b3a2474119a170d
|
7
|
+
data.tar.gz: a17e65a4c5e67932cf59315013cd996fcc767faa95cf2347f673d09dbbf15ba4856fdbd4760c80d776578554e523c29c517c271ac9affc2c0c78fe4aa19c0b78
|
@@ -62,7 +62,7 @@
|
|
62
62
|
if (start)
|
63
63
|
this.popupWindow.classList.add(start)
|
64
64
|
|
65
|
-
popupWindow = this.popupWindow
|
65
|
+
var popupWindow = this.popupWindow
|
66
66
|
setTimeout( // wait for CSS to notice `start` class
|
67
67
|
function () { // trigger the CSS animation
|
68
68
|
if (isNaN(finish)) {
|
@@ -133,7 +133,7 @@
|
|
133
133
|
// Slides the popup out of the screen.
|
134
134
|
// Accepts no options.
|
135
135
|
PopupClass.prototype.hide = function (direction) {
|
136
|
-
popupWindow = this.popupWindow
|
136
|
+
var popupWindow = this.popupWindow
|
137
137
|
|
138
138
|
finish = direction == 'up' ? 'above-screen' : 'below-screen'
|
139
139
|
this.translate(null, finish, function () {
|
data/demo/index.html
CHANGED
@@ -10,9 +10,7 @@
|
|
10
10
|
$(document).ready(function () {
|
11
11
|
Popup("<h2>Hello</h2><p>Did you notice that close button in the top-right corner? It comes with the lib too.</p>", {padding: '30px'}).show('up', function (popup) { popup.style.opacity = 0.6; })
|
12
12
|
|
13
|
-
setTimeout(function () {
|
14
13
|
Popup("<p>Popup</p>").show('up')
|
15
|
-
}, 200)
|
16
14
|
});
|
17
15
|
</script>
|
18
16
|
<body>
|