jetpack-rails 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +8 -1
- data/lib/jetpack/version.rb +2 -2
- data/vendor/assets/javascripts/jetpack/modal.js +12 -8
- metadata +2 -2
data/CHANGELOG
CHANGED
@@ -1,18 +1,25 @@
|
|
1
1
|
Changelog:
|
2
|
+
0.7.1:
|
3
|
+
- Removed jQuery 'live' call and replaced with event on body.
|
4
|
+
|
2
5
|
0.7.0:
|
3
6
|
- Added `nav_link_to` helper for creating navigation links.
|
4
7
|
- Added `viewing?` helper to match for view names.
|
5
8
|
- Added `$responsive` flag to toggle responsive grid throughout an application.
|
6
9
|
- Changed Fractionalize to use `respond-to` mixin.
|
7
10
|
- Adjusted typography settings to make H1s not so crazy.
|
11
|
+
|
8
12
|
0.6.4:
|
9
13
|
- Fixed an accidental regression in 0.6.3.
|
10
14
|
- Added `respond-to` mixin.
|
15
|
+
|
11
16
|
0.6.3:
|
12
17
|
- Adjusted fractionalize to use 'device' width instead of 'width' in media queries.
|
18
|
+
|
13
19
|
0.6.2:
|
14
20
|
- Adjusted resetize style of disabled elements.
|
15
21
|
- Added definition of disabled elements to forms stylesheet and matched to link button styles.
|
22
|
+
|
16
23
|
0.6.1:
|
17
24
|
- Added image max-width to grid containers so images will automatically downscale as needed.
|
18
25
|
|
@@ -103,4 +110,4 @@ Changelog:
|
|
103
110
|
- Added default styles for date/time select fields.
|
104
111
|
|
105
112
|
0.1.0:
|
106
|
-
- Initial Commit
|
113
|
+
- Initial Commit
|
data/lib/jetpack/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
module Jetpack
|
2
|
-
VERSION = "0.7.
|
3
|
-
end
|
2
|
+
VERSION = "0.7.1"
|
3
|
+
end
|
@@ -5,24 +5,24 @@
|
|
5
5
|
* Inspired by jQuery Reveal Plugin 1.0
|
6
6
|
*/
|
7
7
|
|
8
|
-
(function
|
9
|
-
$('
|
8
|
+
$(function(){
|
9
|
+
$('body').on('click', 'a[data-modal]', function (event) {
|
10
10
|
event.preventDefault();
|
11
11
|
var modalLocation = $(this).attr('data-modal');
|
12
12
|
$('#' + modalLocation).modal();
|
13
13
|
});
|
14
|
-
|
14
|
+
|
15
15
|
$.fn.modal = function() {
|
16
16
|
var modal = $(this);
|
17
17
|
var modalBg = $('.modal_bg');
|
18
|
-
|
18
|
+
|
19
19
|
if ( modalBg.length == 0 ) {
|
20
20
|
modalBg = $('<div class="modal_bg"></div>').insertAfter(modal);
|
21
21
|
}
|
22
22
|
|
23
23
|
if( modal.not(':visible') ) {
|
24
24
|
openModal();
|
25
|
-
} else {
|
25
|
+
} else {
|
26
26
|
closeModal();
|
27
27
|
}
|
28
28
|
|
@@ -36,16 +36,20 @@
|
|
36
36
|
modalBg.fadeOut();
|
37
37
|
}
|
38
38
|
|
39
|
+
modalBg.click( function() {
|
40
|
+
closeModal();
|
41
|
+
});
|
42
|
+
|
39
43
|
$('body').keyup( function (event) {
|
40
44
|
if (event.which === 27) {
|
41
45
|
closeModal();
|
42
46
|
}
|
43
47
|
});
|
44
|
-
|
48
|
+
|
45
49
|
$('a.close_modal').click( function(event) {
|
46
50
|
event.preventDefault();
|
47
51
|
closeModal();
|
48
52
|
});
|
49
|
-
|
53
|
+
|
50
54
|
};
|
51
|
-
})
|
55
|
+
});
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jetpack-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-04-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sass-rails
|