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
2f3a71cc
Commit
2f3a71cc
authored
Mar 21, 2013
by
David Stutz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Manual diff.
parent
6b213195
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
24 deletions
+0
-24
bootstrap-multiselect.js
js/bootstrap-multiselect.js
+0
-24
No files found.
js/bootstrap-multiselect.js
View file @
2f3a71cc
...
...
@@ -60,11 +60,7 @@
}
this
.
$container
=
$
(
this
.
options
.
buttonContainer
)
<<<<<<<
HEAD
.
append
(
'
<button type="button" class="multiselect dropdown-toggle
'
+
this
.
options
.
buttonClass
+
'
" data-toggle="dropdown">
'
+
this
.
options
.
buttonText
(
$
(
'
option:selected
'
,
select
))
+
'
</button>
'
)
=======
.
append
(
'
<button type="button" class="multiselect dropdown-toggle
'
+
this
.
options
.
buttonClass
+
'
" data-toggle="dropdown">
'
+
this
.
options
.
buttonText
(
$
(
'
option:selected
'
,
select
),
this
.
$select
)
+
'
</button>
'
)
>>>>>>>
origin
/
gh
-
pages
.
append
(
'
<ul class="dropdown-menu"></ul>
'
);
if
(
this
.
options
.
buttonWidth
)
{
...
...
@@ -95,11 +91,7 @@
// Default text function will either print 'None selected' in case no option is selected,
// or a list of the selected options up to a length of 3 selected options.
// If more than 3 options are selected, the number of selected options is printed.
<<<<<<<
HEAD
buttonText
:
function
(
options
)
{
=======
buttonText
:
function
(
options
,
select
)
{
>>>>>>>
origin
/
gh
-
pages
if
(
options
.
length
==
0
)
{
return
'
None selected <b class="caret"></b>
'
;
}
...
...
@@ -194,11 +186,7 @@
}
var
options
=
$
(
'
option:selected
'
,
this
.
$select
);
<<<<<<<
HEAD
$
(
'
button
'
,
this
.
$container
).
html
(
this
.
options
.
buttonText
(
options
));
=======
$
(
'
button
'
,
this
.
$container
).
html
(
this
.
options
.
buttonText
(
options
,
this
.
$select
));
>>>>>>>
origin
/
gh
-
pages
this
.
options
.
onChange
(
option
,
checked
);
},
this
));
...
...
@@ -227,11 +215,7 @@
}
},
this
));
<<<<<<<
HEAD
$
(
'
button
'
,
this
.
$container
).
html
(
this
.
options
.
buttonText
(
$
(
'
option:selected
'
,
this
.
$select
)));
=======
$
(
'
button
'
,
this
.
$container
).
html
(
this
.
options
.
buttonText
(
$
(
'
option:selected
'
,
this
.
$select
),
this
.
$select
));
>>>>>>>
origin
/
gh
-
pages
},
// Select an option by its value.
...
...
@@ -246,11 +230,7 @@
option
.
prop
(
'
selected
'
,
'
selected
'
);
var
options
=
$
(
'
option:selected
'
,
this
.
$select
);
<<<<<<<
HEAD
$
(
'
button
'
,
this
.
$container
).
html
(
this
.
options
.
buttonText
(
options
));
=======
$
(
'
button
'
,
this
.
$container
).
html
(
this
.
options
.
buttonText
(
options
,
this
.
$select
));
>>>>>>>
origin
/
gh
-
pages
},
// Deselect an option by its value.
...
...
@@ -265,11 +245,7 @@
option
.
removeProp
(
'
selected
'
);
var
options
=
$
(
'
option:selected
'
,
this
.
$select
);
<<<<<<<
HEAD
$
(
'
button
'
,
this
.
$container
).
html
(
this
.
options
.
buttonText
(
options
));
=======
$
(
'
button
'
,
this
.
$container
).
html
(
this
.
options
.
buttonText
(
options
,
this
.
$select
));
>>>>>>>
origin
/
gh
-
pages
},
// Rebuild the whole dropdown menu.
...
...
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