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
c3ccd46e
Commit
c3ccd46e
authored
Feb 12, 2015
by
davidstutz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated examples according to #440.
parent
877e4590
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
index.html
index.html
+12
-12
No files found.
index.html
View file @
c3ccd46e
...
...
@@ -949,10 +949,10 @@
$
(
'
#example-buttonText
'
).
multiselect
({
buttonText
:
function
(
options
,
select
)
{
if
(
options
.
length
===
0
)
{
return
'
No option selected ...
<b class="caret"></b>
'
;
return
'
No option selected ...
'
;
}
else
if
(
options
.
length
>
3
)
{
return
'
More than 3 options selected!
<b class="caret"></b>
'
;
return
'
More than 3 options selected!
'
;
}
else
{
var
labels
=
[];
...
...
@@ -964,7 +964,7 @@
labels
.
push
(
$
(
this
).
html
());
}
});
return
labels
.
join
(
'
,
'
)
+
'
<b class="caret"></b>
'
;
return
labels
.
join
(
'
,
'
);
}
}
});
...
...
@@ -986,10 +986,10 @@
$('#example-buttonText').multiselect({
buttonText: function(options, select) {
if (options.length === 0) {
return 'No option selected ...
<b
class=
"caret"
></b>
';
return 'No option selected ...';
}
else if (options.length > 3) {
return 'More than 3 options selected!
<b
class=
"caret"
></b>
';
return 'More than 3 options selected!';
}
else {
var labels = [];
...
...
@@ -1001,7 +1001,7 @@
labels.push($(this).html());
}
});
return labels.join(', ') + '
<b
class=
"caret"
></b>
';
return labels.join(', ') + '';
}
}
});
...
...
@@ -3159,10 +3159,10 @@
},
buttonText
:
function
(
options
)
{
if
(
options
.
length
===
0
)
{
return
'
None selected
<b class="caret"></b>
'
;
return
'
None selected
'
;
}
else
if
(
options
.
length
>
3
)
{
return
options
.
length
+
'
selected
<b class="caret"></b>
'
;
return
options
.
length
+
'
selected
'
;
}
else
{
var
selected
=
[];
...
...
@@ -3179,7 +3179,7 @@
text
+=
selected
[
i
][
0
]
+
'
,
'
;
}
return
text
.
substr
(
0
,
text
.
length
-
2
)
+
'
<b class="caret"></b>
'
;
return
text
.
substr
(
0
,
text
.
length
-
2
);
}
}
});
...
...
@@ -3233,10 +3233,10 @@
},
buttonText: function(options) {
if (options.length === 0) {
return 'None selected
<b
class=
"caret"
></b>
';
return 'None selected';
}
else if (options.length > 3) {
return options.length + ' selected
<b
class=
"caret"
></b>
';
return options.length + ' selected';
}
else {
var selected = [];
...
...
@@ -3253,7 +3253,7 @@
text
+=
selected
[
i
][
0
]
+
',
';
}
return
text
.
substr
(
0
,
text
.
length
-2
)
+
'
<
b
class=
"caret"
></b>
'
;
return
text
.
substr
(
0
,
text
.
length
-2
);
}
},
});
...
...
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