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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 630076eed1bfc318b8f21bbe7abdb617215718f8
4
- data.tar.gz: 15a315841849ed114576e9d8ef0bf77f23c76d7d
3
+ metadata.gz: 3603608996426bbd1c8f3c97684a638c3278c7c2
4
+ data.tar.gz: 2b5f00af2de45902fe750ca387ccab566493fa97
5
5
  SHA512:
6
- metadata.gz: 8b1fcbe381bfc849aca99927bb369016d90e92befac446a26206b9d0e4e294ac834a33b7bbf88835eb0027c6badeff7a7b77b93f31b3dc6d6d79b9498d7b9400
7
- data.tar.gz: 5435ad2604d88da62802e6022d0cd7bb3c6d8f564d41a483220baab5538e5eb3b2e22a6639ceac7bb213c79b7127e5e9d1274050879e78265e62224a13849702
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 = 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: 999;
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
- popup = Popup("<h2>Hello</h2><p>Lorem ipsum</p>", {padding: '16px'})
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: server-generated-popups
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.3'
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Khamets