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
5d02a5c6
Commit
5d02a5c6
authored
Apr 22, 2013
by
Luís Rudge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no need to rebuild on update :)
parent
925c34d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
bootstrap-multiselect.js
js/bootstrap-multiselect.js
+2
-6
No files found.
js/bootstrap-multiselect.js
View file @
5d02a5c6
...
@@ -30,13 +30,9 @@
...
@@ -30,13 +30,9 @@
ko
.
applyBindingsToNode
(
element
,
{
options
:
options
,
optionsValue
:
optionsValue
,
optionsText
:
optionsText
},
viewModel
);
ko
.
applyBindingsToNode
(
element
,
{
options
:
options
,
optionsValue
:
optionsValue
,
optionsText
:
optionsText
},
viewModel
);
$
(
element
).
multiselect
(
ko
.
utils
.
unwrapObservable
(
multiSelectData
.
initOptions
));
$
(
element
).
multiselect
(
ko
.
utils
.
unwrapObservable
(
multiSelectData
.
initOptions
));
var
ms
=
$
(
element
).
data
(
'
multiselect
'
);
console
.
log
(
ms
);
},
},
update
:
function
(
element
,
valueAccessor
,
allBindingsAccessor
,
viewModel
,
bindingContext
)
{
update
:
function
(
element
,
valueAccessor
,
allBindingsAccessor
,
viewModel
,
bindingContext
)
{
var
blockRefresh
=
$
(
element
).
data
(
'
blockRefresh
'
)
||
false
;
if
(
!
blockRefresh
)
{
$
(
element
).
multiselect
(
"
rebuild
"
);
}
$
.
data
(
element
,
'
blockRefresh
'
,
false
);
}
}
};
};
}
}
...
@@ -151,7 +147,7 @@
...
@@ -151,7 +147,7 @@
// Build the dropdown and bind event handling.
// Build the dropdown and bind event handling.
buildDropdown
:
function
()
{
buildDropdown
:
function
()
{
//If options.includeSelectAllOption === true, add the include all checkbox
//If options.includeSelectAllOption === true, add the include all checkbox
if
(
this
.
options
.
includeSelectAllOption
&&
this
.
options
.
multiple
)
{
if
(
this
.
options
.
includeSelectAllOption
&&
this
.
options
.
multiple
)
{
this
.
$select
.
prepend
(
'
<option value="select-all-option">
'
+
this
.
options
.
selectAllText
+
'
</option>
'
);
this
.
$select
.
prepend
(
'
<option value="select-all-option">
'
+
this
.
options
.
selectAllText
+
'
</option>
'
);
}
}
...
...
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