agilibox 1.0.6 → 1.0.7
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: 8b9e98287e02a9ee5628cae5c21cdd4479a6bb7c
|
4
|
+
data.tar.gz: 48b2aa5dc556cf7a5f048fcf62d4f41572c37554
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ecdc6deafca423ba16a6a44e796a405864b9afdac0671d8a8f09978ebada07b48ad2667f585b3eb74e19438ad0f5eea99f7804735b6f1c1ce8cd93771cc2e53
|
7
|
+
data.tar.gz: 55964a60d9f5a64845f1ff5f97287aef443ab1344e7058e68f9b4c8dd6f4fd1ba539b6318876821c37aa3ea10c0899e03bb0ed70a118feb58e7fcbcd21c0e2b3
|
data/CHANGELOG.md
CHANGED
@@ -8,3 +8,13 @@
|
|
8
8
|
input[type=checkbox]
|
9
9
|
position: static
|
10
10
|
margin: 0 0.5em 0 0
|
11
|
+
|
12
|
+
// Chrome and Safari does not trigger display:none submit buttons on <enter> key press
|
13
|
+
.hidden-submit
|
14
|
+
position: absolute
|
15
|
+
top: -9999px
|
16
|
+
left: -9999px
|
17
|
+
opacity: 0
|
18
|
+
height: 0
|
19
|
+
width: 0
|
20
|
+
visibility: hidden
|
@@ -44,7 +44,7 @@ module Agilibox::FiltersHelper
|
|
44
44
|
html = simple_form_for(:filters, options, &block)
|
45
45
|
|
46
46
|
if buttons
|
47
|
-
html = html.gsub("</form>", "#{filter_buttons}</form>").html_safe
|
47
|
+
html = html.gsub("</form>", "#{form_hidden_submit + filter_buttons}</form>").html_safe
|
48
48
|
end
|
49
49
|
|
50
50
|
html
|
@@ -1,4 +1,9 @@
|
|
1
1
|
module Agilibox::FormHelper
|
2
|
+
# Hidden submit to be the default triggered on <enter> keypress on a form
|
3
|
+
def form_hidden_submit
|
4
|
+
tag(:input, type: "submit", class: "hidden-submit")
|
5
|
+
end
|
6
|
+
|
2
7
|
def form_buttons(opts = {})
|
3
8
|
back_url = opts[:back_url]
|
4
9
|
back_url = url_for(:back).html_safe if back_url.blank?
|
@@ -1,6 +1,12 @@
|
|
1
1
|
form.search method="get" action=action
|
2
|
+
= form_hidden_submit
|
3
|
+
|
2
4
|
p.input-group.search
|
3
5
|
input.form-control name="q" placeholder=t("actions.search") size=25 value=params[:q]
|
4
|
-
|
5
|
-
|
6
|
+
|
7
|
+
span.input-group-btn
|
8
|
+
button.btn.btn-default.search-reset.reset type="submit"
|
9
|
+
= icon :times
|
10
|
+
|
11
|
+
button.btn.btn-default.search-submit type="submit"
|
6
12
|
= icon :search
|
data/lib/agilibox/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: agilibox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- agilidée
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails-i18n
|
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
121
|
version: '0'
|
122
122
|
requirements: []
|
123
123
|
rubyforge_project:
|
124
|
-
rubygems_version: 2.6.
|
124
|
+
rubygems_version: 2.6.13
|
125
125
|
signing_key:
|
126
126
|
specification_version: 4
|
127
127
|
summary: Agilibox
|