server-generated-popups 1.3 → 1.3.1
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 +1 -1
- data/app/assets/stylesheets/popup.css +2 -2
- data/demo/index.html +1 -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: 3603608996426bbd1c8f3c97684a638c3278c7c2
|
4
|
+
data.tar.gz: 2b5f00af2de45902fe750ca387ccab566493fa97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42f2e7d331ebbf7ae39295db897f27f1d08a335b35139278c95d291c41ff94eb5237590375a289c76fe669e5bef7ac24ba12e63c340c9d36e4e77929dd288c11
|
7
|
+
data.tar.gz: 6cc70f443b7260c445ce7a574ac56ac4b8a347e46fefa9f1b2956da27c5170031e2c768773ce9bcd90444380460b8868e330bceaf7208d16afb738ec2208cf9e
|
@@ -45,7 +45,7 @@ PopupClass.prototype.createCloseButton = function () {
|
|
45
45
|
}
|
46
46
|
|
47
47
|
PopupClass.prototype.show = function (direction, options) {
|
48
|
-
options =
|
48
|
+
options = $.extend({backdrop: true, closeButton: true}, options)
|
49
49
|
|
50
50
|
$('body').append(this.popupWindow)
|
51
51
|
beyondScreen = (direction == 'up') ? '180%' : '-80%'
|
@@ -1,12 +1,12 @@
|
|
1
1
|
.popup {
|
2
|
-
position: fixed; z-index:
|
2
|
+
position: fixed; z-index: 1050;
|
3
3
|
background: white;
|
4
4
|
left: 50%;
|
5
5
|
box-shadow: 0px 10px 20px rgba(0,0,0,0.3);
|
6
6
|
}
|
7
7
|
|
8
8
|
#popup-backdrop {
|
9
|
-
position: fixed;
|
9
|
+
position: fixed; z-index: 1040;
|
10
10
|
top: 0; left: 0; bottom: 0; right: 0;
|
11
11
|
background-color: black;
|
12
12
|
|
data/demo/index.html
CHANGED
@@ -8,8 +8,7 @@
|
|
8
8
|
</head>
|
9
9
|
<script type="text/javascript">
|
10
10
|
$(document).ready(function () {
|
11
|
-
|
12
|
-
popup.show('up', {backdrop: true, closeButton: true})
|
11
|
+
Popup("<h2>Hello</h2><p>Lorem ipsum</p>", {padding: '16px'}).show('up')
|
13
12
|
});
|
14
13
|
</script>
|
15
14
|
<body>
|
@@ -12,7 +12,7 @@ Gem::Specification.new do |gem|
|
|
12
12
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
13
13
|
gem.name = "server-generated-popups"
|
14
14
|
gem.require_paths = ["lib"]
|
15
|
-
gem.version = "1.3"
|
15
|
+
gem.version = "1.3.1"
|
16
16
|
|
17
17
|
gem.add_runtime_dependency 'jquery-rails'
|
18
18
|
end
|