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
7d6811d6
Commit
7d6811d6
authored
9 years ago
by
David Stutz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some fixes for #628.
parent
2ba8085c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
bootstrap-multiselect.js
dist/js/bootstrap-multiselect.js
+6
-4
index.html
index.html
+2
-2
No files found.
dist/js/bootstrap-multiselect.js
View file @
7d6811d6
...
...
@@ -170,7 +170,7 @@
this
.
buildFilter
();
this
.
updateButtonText
();
this
.
updateSelectAll
();
this
.
updateSelectAll
(
true
);
if
(
this
.
options
.
disableIfEmpty
&&
$
(
'
option
'
,
this
.
$select
).
length
<=
0
)
{
this
.
disable
();
...
...
@@ -1212,7 +1212,7 @@
this
.
buildFilter
();
this
.
updateButtonText
();
this
.
updateSelectAll
();
this
.
updateSelectAll
(
true
);
if
(
this
.
options
.
disableIfEmpty
&&
$
(
'
option
'
,
this
.
$select
).
length
<=
0
)
{
this
.
disable
();
...
...
@@ -1322,7 +1322,7 @@
/**
* Updates the select all checkbox based on the currently displayed and selected checkboxes.
*/
updateSelectAll
:
function
()
{
updateSelectAll
:
function
(
notTriggerOnSelectAll
)
{
if
(
this
.
hasSelectAll
())
{
var
allBoxes
=
$
(
"
li:not(.multiselect-item):not(.filter-hidden) input:enabled
"
,
this
.
$ul
);
var
allBoxesLength
=
allBoxes
.
length
;
...
...
@@ -1339,7 +1339,9 @@
selectAllInput
.
prop
(
"
checked
"
,
false
);
selectAllLi
.
removeClass
(
this
.
options
.
selectedClass
);
if
(
checkedBoxesLength
===
0
)
{
this
.
options
.
onSelectAll
(
false
);
if
(
!
notTriggerOnSelectAll
)
{
this
.
options
.
onSelectAll
(
false
);
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
index.html
View file @
7d6811d6
...
...
@@ -2059,8 +2059,8 @@
$
(
document
).
ready
(
function
()
{
$
(
'
#example-onSelectAll
'
).
multiselect
({
includeSelectAllOption
:
true
,
onSelectAll
:
function
()
{
alert
(
'
onSelectAll triggered
.
'
);
onSelectAll
:
function
(
checked
)
{
alert
(
'
onSelectAll triggered
:
'
+
(
checked
?
'
selected all
'
:
'
deselected all
'
)
+
'
!
'
);
}
});
});
...
...
This diff is collapsed.
Click to expand it.
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