incline 0.2.26 → 0.2.27
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +6 -8
- data/app/assets/javascripts/incline/inline_actions.js +24 -16
- data/lib/incline/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c58d46ca687610ae0f138d5fde7eef55cb84618
|
4
|
+
data.tar.gz: 8ae4c5d5616e174c3dfeba99f87c4e3507e88f67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: daf4b51f05b0d2923ed007f008d6733b7a6ce76b2027010398592564f5958073d93f1c166b40dc2934ee100208e7fe7432ca1abda552434ab7d998b09873c811
|
7
|
+
data.tar.gz: a482328ea9051468d050eb99c577c25f9368384b17a07f680f86708c28a317bc020da963d90dde98aef8ce3e9b2e8713e56a6561def541fa3bdf3bd7e58d59b8
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
incline (0.2.
|
4
|
+
incline (0.2.27)
|
5
5
|
ansi (~> 1.5.0)
|
6
6
|
bcrypt
|
7
7
|
bootstrap-sass
|
@@ -83,7 +83,7 @@ GEM
|
|
83
83
|
faker (1.7.3)
|
84
84
|
i18n (~> 0.5)
|
85
85
|
ffi (1.9.18)
|
86
|
-
globalid (0.4.
|
86
|
+
globalid (0.4.1)
|
87
87
|
activesupport (>= 4.2.0)
|
88
88
|
i18n (0.8.6)
|
89
89
|
jbuilder (2.7.0)
|
@@ -95,11 +95,9 @@ GEM
|
|
95
95
|
thor (>= 0.14, < 2.0)
|
96
96
|
loofah (2.0.3)
|
97
97
|
nokogiri (>= 1.5.9)
|
98
|
-
mail (2.
|
99
|
-
|
100
|
-
|
101
|
-
mime-types-data (~> 3.2015)
|
102
|
-
mime-types-data (3.2016.0521)
|
98
|
+
mail (2.7.0)
|
99
|
+
mini_mime (>= 0.1.1)
|
100
|
+
mini_mime (1.0.0)
|
103
101
|
mini_portile2 (2.2.0)
|
104
102
|
minitest (5.10.3)
|
105
103
|
multi_json (1.12.2)
|
@@ -140,7 +138,7 @@ GEM
|
|
140
138
|
redcarpet (3.4.0)
|
141
139
|
rubyserial (0.4.0)
|
142
140
|
ffi (~> 1.9, >= 1.9.3)
|
143
|
-
sass (3.5.
|
141
|
+
sass (3.5.3)
|
144
142
|
sass-listen (~> 4.0.0)
|
145
143
|
sass-listen (4.0.0)
|
146
144
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
@@ -457,25 +457,33 @@ function inlineAction(path, method) {
|
|
457
457
|
// Otherwise, if "messages" are set in the response then we display them.
|
458
458
|
$.fn.inlineAction = function () {
|
459
459
|
var item = $(this);
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
460
|
+
if (item.length > 1) {
|
461
|
+
item.each($.fn.inlineAction);
|
462
|
+
} else {
|
463
|
+
var path = item.attr('href');
|
464
|
+
var method = item.attr('data-method');
|
465
|
+
if (!(method)) method = 'get';
|
466
|
+
|
467
|
+
item.click(function (e) {
|
468
|
+
e.preventDefault();
|
469
|
+
inclineInline.action(path, method);
|
470
|
+
});
|
471
|
+
}
|
468
472
|
};
|
469
473
|
$.fn.inlineForm = function () {
|
470
474
|
var item =$(this);
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
475
|
+
if (item.length > 1) {
|
476
|
+
item.each($.fn.inlineForm);
|
477
|
+
} else {
|
478
|
+
var path = item.attr('href');
|
479
|
+
var method = item.attr('data-method');
|
480
|
+
if (!(method)) method = 'get';
|
481
|
+
|
482
|
+
item.click(function (e) {
|
483
|
+
e.preventDefault();
|
484
|
+
inclineInline.form(path, method);
|
485
|
+
});
|
486
|
+
}
|
479
487
|
};
|
480
488
|
})(jQuery);
|
481
489
|
|
data/lib/incline/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: incline
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.27
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Beau Barker
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -610,7 +610,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
610
610
|
version: '0'
|
611
611
|
requirements: []
|
612
612
|
rubyforge_project:
|
613
|
-
rubygems_version: 2.
|
613
|
+
rubygems_version: 2.5.2
|
614
614
|
signing_key:
|
615
615
|
specification_version: 4
|
616
616
|
summary: A gem designed to get off to an even quicker start with Rails.
|