Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap-multiselect
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap-multiselect
Commits
75501599
Commit
75501599
authored
Mar 30, 2014
by
David Stutz
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/davidstutz/bootstrap-multiselect
, fixed select all.
Conflicts: js/bootstrap-multiselect.js
parents
49e25ebc
a50ba907
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
17 deletions
+21
-17
index-2-3.html
index-2-3.html
+1
-1
index.html
index.html
+1
-1
bootstrap-multiselect.js
js/bootstrap-multiselect.js
+19
-15
No files found.
index-2-3.html
View file @
75501599
...
...
@@ -241,7 +241,7 @@
</select>
</td>
<td>
Multiselect with a 'Select all' option
Multiselect with a 'Select all' option
.
</td>
</tr>
<tr>
...
...
index.html
View file @
75501599
...
...
@@ -251,7 +251,7 @@
</select>
</td>
<td>
Multiselect with a 'Select all' option
Multiselect with a 'Select all' option
.
</td>
</tr>
<tr>
...
...
js/bootstrap-multiselect.js
View file @
75501599
...
...
@@ -346,13 +346,14 @@
if
(
this
.
$select
[
0
][
0
].
value
===
this
.
options
.
selectAllValue
)
{
var
values
=
[];
// Check for visibility of options.
var
options
=
$
(
'
option[value!="
'
+
this
.
options
.
selectAllValue
+
'
"][data-role!="divider"]
'
,
this
.
$select
)
.
filter
(
'
:visible
'
);
var
options
=
$
(
'
option[value!="
'
+
this
.
options
.
selectAllValue
+
'
"][data-role!="divider"]
'
,
this
.
$select
);
for
(
var
i
=
0
;
i
<
options
.
length
;
i
++
)
{
values
.
push
(
options
[
i
].
value
);
// Check whether this option is actually visible.
if
(
this
.
getInputByValue
(
options
[
i
].
value
)
&&
this
.
getInputByValue
(
options
[
i
].
value
).
is
(
'
:visible
'
))
{
values
.
push
(
options
[
i
].
value
);
}
}
if
(
checked
)
{
...
...
@@ -618,19 +619,22 @@
var
value
=
$
(
'
input
'
,
element
).
val
();
var
text
=
$
(
'
label
'
,
element
).
text
();
var
filterCandidate
=
''
;
if
((
this
.
options
.
filterBehavior
===
'
text
'
))
{
filterCandidate
=
text
;
}
else
if
((
this
.
options
.
filterBehavior
===
'
value
'
))
{
filterCandidate
=
value
;
}
else
if
(
this
.
options
.
filterBehavior
===
'
both
'
)
{
filterCandidate
=
text
+
'
\n
'
+
value
;
}
if
(
value
!==
this
.
options
.
selectAllValue
&&
text
)
{
// by default lets assume that element is not
// interesting for this search
var
showElement
=
false
;
var
filterCandidate
=
''
;
if
((
this
.
options
.
filterBehavior
===
'
text
'
||
this
.
options
.
filterBehavior
===
'
both
'
))
{
filterCandidate
=
text
;
}
if
((
this
.
options
.
filterBehavior
===
'
value
'
||
this
.
options
.
filterBehavior
===
'
both
'
))
{
filterCandidate
=
value
;
}
if
(
this
.
options
.
enableCaseInsensitiveFiltering
&&
filterCandidate
.
toLowerCase
().
indexOf
(
this
.
query
.
toLowerCase
())
>
-
1
)
{
showElement
=
true
;
}
...
...
@@ -920,7 +924,7 @@
for
(
var
i
=
0
;
i
<
options
.
length
;
i
=
i
+
1
)
{
var
option
=
options
[
i
];
if
(
option
.
value
==
valueToCompare
)
{
if
(
option
.
value
==
=
valueToCompare
)
{
return
$
(
option
);
}
}
...
...
@@ -939,7 +943,7 @@
for
(
var
i
=
0
;
i
<
checkboxes
.
length
;
i
=
i
+
1
)
{
var
checkbox
=
checkboxes
[
i
];
if
(
checkbox
.
value
==
valueToCompare
)
{
if
(
checkbox
.
value
==
=
valueToCompare
)
{
return
$
(
checkbox
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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