jquery-modal-rails-assets 0.8.2 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1064fe01509ea84f7306fe12cdb6f4af1ddd6a0c
|
4
|
+
data.tar.gz: eeef735c420494f09442e14a7f6563c911b3fc60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59e02c3beb74891def32a8c9c3966ac8ff211f2e03c1f4866dfad0a63fb7e760836630d5a14dd1e68093d7b09475ddcb04fcfc8102de762262cc02a65833df37
|
7
|
+
data.tar.gz: dd3b1a995a41142b84b6fa03d8f88605352c14f5428898f4e7db206e87be8ac729effa43a0fecff9c059627568bbd9a70cee1e6924577d16a64825e31e3b0e61
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*
|
2
2
|
A simple jQuery modal (http://github.com/kylefox/jquery-modal)
|
3
|
-
Version 0.
|
3
|
+
Version 0.9.0
|
4
4
|
*/
|
5
5
|
|
6
6
|
(function (factory) {
|
@@ -41,6 +41,7 @@
|
|
41
41
|
modals.push(this);
|
42
42
|
if (el.is('a')) {
|
43
43
|
target = el.attr('href');
|
44
|
+
this.anchor = el;
|
44
45
|
//Select element by id from href
|
45
46
|
if (/^#/.test(target)) {
|
46
47
|
this.$elm = $(target);
|
@@ -83,6 +84,7 @@
|
|
83
84
|
open: function() {
|
84
85
|
var m = this;
|
85
86
|
this.block();
|
87
|
+
this.anchor.blur();
|
86
88
|
if(this.options.doFade) {
|
87
89
|
setTimeout(function() {
|
88
90
|
m.show();
|
@@ -92,11 +94,11 @@
|
|
92
94
|
}
|
93
95
|
$(document).off('keydown.modal').on('keydown.modal', function(event) {
|
94
96
|
var current = getCurrent();
|
95
|
-
if (event.which
|
97
|
+
if (event.which === 27 && current.options.escapeClose) current.close();
|
96
98
|
});
|
97
99
|
if (this.options.clickClose)
|
98
100
|
this.$blocker.click(function(e) {
|
99
|
-
if (e.target
|
101
|
+
if (e.target === this)
|
100
102
|
$.modal.close();
|
101
103
|
});
|
102
104
|
},
|
@@ -193,7 +195,7 @@
|
|
193
195
|
// Returns if there currently is an active modal
|
194
196
|
$.modal.isActive = function () {
|
195
197
|
return modals.length > 0;
|
196
|
-
}
|
198
|
+
};
|
197
199
|
|
198
200
|
$.modal.getCurrent = getCurrent;
|
199
201
|
|
@@ -205,7 +207,7 @@
|
|
205
207
|
closeClass: '',
|
206
208
|
modalClass: "modal",
|
207
209
|
blockerClass: "jquery-modal",
|
208
|
-
spinnerHtml:
|
210
|
+
spinnerHtml: '<div class="rect1"></div><div class="rect2"></div><div class="rect3"></div><div class="rect4"></div>',
|
209
211
|
showSpinner: true,
|
210
212
|
showClose: true,
|
211
213
|
fadeDuration: null, // Number of milliseconds the fade animation takes.
|
@@ -51,22 +51,63 @@
|
|
51
51
|
width: 30px;
|
52
52
|
height: 30px;
|
53
53
|
text-indent: -9999px;
|
54
|
-
background:
|
54
|
+
background-size: contain;
|
55
|
+
background-repeat: no-repeat;
|
56
|
+
background-position: center center;
|
57
|
+
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs4c6QAAA3hJREFUaAXlm8+K00Acx7MiCIJH/yw+gA9g25O49SL4AO3Bp1jw5NvktC+wF88qevK4BU97EmzxUBCEolK/n5gp3W6TTJPfpNPNF37MNsl85/vN/DaTmU6PknC4K+pniqeKJ3k8UnkvDxXJzzy+q/yaxxeVHxW/FNHjgRSeKt4rFoplzaAuHHDBGR2eS9G54reirsmienDCTRt7xwsp+KAoEmt9nLaGitZxrBbPFNaGfPloGw2t4JVamSt8xYW6Dg1oCYo3Yv+rCGViV160oMkcd8SYKnYV1Nb1aEOjCe6L5ZOiLfF120EjWhuBu3YIZt1NQmujnk5F4MgOpURzLfAwOBSTmzp3fpDxuI/pabxpqOoz2r2HLAb0GMbZKlNV5/Hg9XJypguryA7lPF5KMdTZQzHjqxNPhWhzIuAruOl1eNqKEx1tSh5rfbxdw7mOxCq4qS68ZTjKS1YVvilu559vWvFHhh4rZrdyZ69Vmpgdj8fJbDZLJpNJ0uv1cnr/gjrUhQMuI+ANjyuwftQ0bbL6Erp0mM/ny8Fg4M3LtdRxgMtKl3jwmIHVxYXChFy94/Rmpa/pTbNUhstKV+4Rr8lLQ9KlUvJKLyG8yvQ2s9SBy1Jb7jV5a0yapfF6apaZLjLLcWtd4sNrmJUMHyM+1xibTjH82Zh01TNlhsrOhdKTe00uAzZQmN6+KW+sDa/JD2PSVQ873m29yf+1Q9VDzfEYlHi1G5LKBBWZbtEsHbFwb1oYDwr1ZiF/2bnCSg1OBE/pfr9/bWx26UxJL3ONPISOLKUvQza0LZUxSKyjpdTGa/vDEr25rddbMM0Q3O6Lx3rqFvU+x6UrRKQY7tyrZecmD9FODy8uLizTmilwNj0kraNcAJhOp5aGVwsAGD5VmJBrWWbJSgWT9zrzWepQF47RaGSiKfeGx6Szi3gzmX/HHbihwBser4B9UJYpFBNX4R6vTn3VQnez0SymnrHQMsRYGTr1dSk34ljRqS/EMd2pLQ8YBp3a1PLfcqCpo8gtHkZFHKkTX6fs3MY0blKnth66rKCnU0VRGu37ONrQaA4eZDFtWAu2fXj9zjFkxTBOo8F7t926gTp/83Kyzzcy2kZD6xiqxTYnHLRFm3vHiRSwNSjkz3hoIzo8lCKWUlg/YtGs7tObunDAZfpDLbfEI15zsEIY3U/x/gHHc/G1zltnAgAAAABJRU5ErkJggg==');
|
58
|
+
|
55
59
|
}
|
56
60
|
|
57
61
|
.modal-spinner {
|
58
62
|
display: none;
|
59
|
-
width: 64px;
|
60
|
-
height: 64px;
|
61
63
|
position: fixed;
|
62
64
|
top: 50%;
|
63
65
|
left: 50%;
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
66
|
+
transform: translateY(-50%) translateX(-50%);
|
67
|
+
padding: 12px 16px;
|
68
|
+
border-radius: 5px;
|
69
|
+
background-color: #111;
|
70
|
+
height: 20px;
|
71
|
+
}
|
72
|
+
|
73
|
+
.modal-spinner > div {
|
74
|
+
border-radius: 100px;
|
75
|
+
background-color: #fff;
|
76
|
+
height: 20px;
|
77
|
+
width: 2px;
|
78
|
+
margin: 0 1px;
|
79
|
+
display: inline-block;
|
80
|
+
|
81
|
+
-webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
|
82
|
+
animation: sk-stretchdelay 1.2s infinite ease-in-out;
|
83
|
+
}
|
84
|
+
|
85
|
+
.modal-spinner .rect2 {
|
86
|
+
-webkit-animation-delay: -1.1s;
|
87
|
+
animation-delay: -1.1s;
|
88
|
+
}
|
89
|
+
|
90
|
+
.modal-spinner .rect3 {
|
91
|
+
-webkit-animation-delay: -1.0s;
|
92
|
+
animation-delay: -1.0s;
|
93
|
+
}
|
94
|
+
|
95
|
+
.modal-spinner .rect4 {
|
96
|
+
-webkit-animation-delay: -0.9s;
|
97
|
+
animation-delay: -0.9s;
|
98
|
+
}
|
99
|
+
|
100
|
+
@-webkit-keyframes sk-stretchdelay {
|
101
|
+
0%, 40%, 100% { -webkit-transform: scaleY(0.5) }
|
102
|
+
20% { -webkit-transform: scaleY(1.0) }
|
103
|
+
}
|
104
|
+
|
105
|
+
@keyframes sk-stretchdelay {
|
106
|
+
0%, 40%, 100% {
|
107
|
+
transform: scaleY(0.5);
|
108
|
+
-webkit-transform: scaleY(0.5);
|
109
|
+
} 20% {
|
110
|
+
transform: scaleY(1.0);
|
111
|
+
-webkit-transform: scaleY(1.0);
|
112
|
+
}
|
72
113
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jquery-modal-rails-assets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- RogerE
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|