server-generated-popups 1.3.6 → 1.3.7
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 +5 -3
- data/app/assets/stylesheets/popup.css +0 -1
- 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: 52fc94fd7a3eaffa5752ed09b7d6cd06a0c6a6d5
|
4
|
+
data.tar.gz: eed96a154c24f1938e5543bab2f7f9879b4c19af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b369244fe1cd32357224ada23cf7b969aebed819fc2299e3ac41beabef419b10b1c332f905241dca6871d1ba43956d19a10c742364586d2ed20c1d90322ffd8e
|
7
|
+
data.tar.gz: 37d76724e39c3f672f33503b199fe750468d6d6ee2a6eb8243c6d1ba0600ba944209a24c77947e925b52db0277f34c035694b4890cb78f920e3ae5936d4be6d2
|
@@ -6,12 +6,12 @@ function PopupClass(html, options) {
|
|
6
6
|
contents = $(html)
|
7
7
|
this.popupWindow = $('<div class="popup"></div>')
|
8
8
|
|
9
|
-
options = $.extend({}, {width: 600}, options || {})
|
10
|
-
actualWidth = Math.min($(window).width(), options.width) // TODO: use CSS
|
9
|
+
this.options = $.extend({}, {width: 600}, options || {})
|
10
|
+
actualWidth = Math.min($(window).width(), this.options.width) // TODO: use CSS
|
11
11
|
this.popupWindow.css({
|
12
12
|
'width': actualWidth.toString() + 'px',
|
13
13
|
'margin-left': (actualWidth/2 * -1).toString() + 'px',
|
14
|
-
'padding': options.padding
|
14
|
+
'padding': this.options.padding
|
15
15
|
})
|
16
16
|
this.popupWindow.append(contents)
|
17
17
|
|
@@ -43,6 +43,8 @@ PopupClass.prototype.hideBackdrop = function () {
|
|
43
43
|
}
|
44
44
|
PopupClass.prototype.createCloseButton = function () {
|
45
45
|
closeButton = $('<div class="closeButton"></div>')
|
46
|
+
margin = this.options.padding || '16px'
|
47
|
+
closeButton.css({top: margin, right: margin})
|
46
48
|
popupObject = this
|
47
49
|
closeButton.click(function () {
|
48
50
|
popupObject.hide('down')
|
@@ -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.7"
|
16
16
|
|
17
17
|
gem.add_runtime_dependency 'jquery-rails'
|
18
18
|
end
|