activeadmin-regex-input 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8ae755b97161ae9810e60465904167914270279
|
4
|
+
data.tar.gz: f3f54691637c9cbd28a0a29920d07a4251a3ac25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f24b4bc0d7777ea7621c26dbef11398a311cfb42a07f9e70995cfa11baaf34064175d9239d41bd048ccd429bca4c0ce512c1094453ffbcd657bf245f2daa42b6
|
7
|
+
data.tar.gz: 48abe5d4ca19742d4124b9b9a437ffe974dfee37bdc3004eaae021faa9412564f30c619a362dbebf65aaf62b5ff5c28a50d1402d3696c98b93c180fbd3dde501
|
@@ -4,7 +4,7 @@ require 'activeadmin/regex-input/version'
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = 'activeadmin-regex-input'
|
7
|
-
s.version = '0.2.
|
7
|
+
s.version = '0.2.1'
|
8
8
|
s.date = '2018-03-14'
|
9
9
|
s.summary = "Active Admin Regex Input"
|
10
10
|
s.description = "A simple filter input for active admin with checking at client if input match predefined regex."
|
@@ -37,7 +37,7 @@ function initRegexInputs(inputs) {
|
|
37
37
|
|
38
38
|
// Show popover and change color if current input doesn't match regex
|
39
39
|
input.on('keyup', event => {
|
40
|
-
if (!regex.test(input.val())) {
|
40
|
+
if (!regex.test(input.val()) && !(input.val() === '' || input.val() === null)) {
|
41
41
|
input.css('border-color', 'red');
|
42
42
|
input.webuiPopover('show');
|
43
43
|
} else {
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activeadmin-regex-input
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Canh Nguyen
|
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
94
|
version: '0'
|
95
95
|
requirements: []
|
96
96
|
rubyforge_project:
|
97
|
-
rubygems_version: 2.
|
97
|
+
rubygems_version: 2.6.11
|
98
98
|
signing_key:
|
99
99
|
specification_version: 4
|
100
100
|
summary: Active Admin Regex Input
|