Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
thoughtbot, inc.
administrate
Commits
9b1bfcc3
Commit
9b1bfcc3
authored
3 years ago
by
Nicholas Hippenmeyer
Browse files
Options
Download
Email Patches
Plain Diff
Call .selectize() on all select fields
parent
4dda532e
github/fork/rinsed-org/selectize
1 merge request
!2180
Call .selectize() on all select fields
Pipeline
#1268
failed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/assets/javascripts/administrate/components/associative.js
+1
-3
...assets/javascripts/administrate/components/associative.js
spec/features/edit_page_spec.rb
+2
-1
spec/features/edit_page_spec.rb
with
3 additions
and
4 deletions
+3
-4
app/assets/javascripts/administrate/components/associative.js
+
1
-
3
View file @
9b1bfcc3
$
(
function
()
{
$
(
'
.field-unit--belongs-to select
'
).
selectize
({});
$
(
"
.field-unit--has-many select
"
).
selectize
({});
$
(
'
.field-unit--polymorphic select
'
).
selectize
({});
$
(
'
.field-unit select
'
).
selectize
({});
});
This diff is collapsed.
Click to expand it.
spec/features/edit_page_spec.rb
+
2
-
1
View file @
9b1bfcc3
...
...
@@ -40,7 +40,8 @@ describe "customer edit page" do
customer
=
create
(
:customer
,
kind: :standard
)
visit
edit_admin_customer_path
(
customer
)
select
"vip"
,
from:
"Kind"
find
(
"#customer_kind-selectized"
).
click
find
(
".option"
,
text:
"vip"
).
click
click_on
"Update Customer"
expect
(
page
).
to
have_text
(
"KIND"
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets