Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Y
yii2bootstrap
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
夏彬
yii2bootstrap
Commits
53db15c3
Commit
53db15c3
authored
May 19, 2015
by
Klimov Paul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed `yii\bootstrap\ButtonDropdown` renders two buttons have same with id if 'split' is enabled
parent
dbb0ed70
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
ButtonDropdown.php
ButtonDropdown.php
+2
-0
CHANGELOG.md
CHANGELOG.md
+1
-0
No files found.
ButtonDropdown.php
View file @
53db15c3
...
@@ -74,6 +74,7 @@ class ButtonDropdown extends Widget
...
@@ -74,6 +74,7 @@ class ButtonDropdown extends Widget
*/
*/
public
function
run
()
public
function
run
()
{
{
// @todo use [[options]] instead of [[containerOptions]] and introduce [[buttonOptions]] before 2.1 release
Html
::
addCssClass
(
$this
->
containerOptions
,
'btn-group'
);
Html
::
addCssClass
(
$this
->
containerOptions
,
'btn-group'
);
$options
=
$this
->
containerOptions
;
$options
=
$this
->
containerOptions
;
$tag
=
ArrayHelper
::
remove
(
$options
,
'tag'
,
'div'
);
$tag
=
ArrayHelper
::
remove
(
$options
,
'tag'
,
'div'
);
...
@@ -102,6 +103,7 @@ class ButtonDropdown extends Widget
...
@@ -102,6 +103,7 @@ class ButtonDropdown extends Widget
$options
=
$this
->
options
;
$options
=
$this
->
options
;
$this
->
options
[
'data-toggle'
]
=
'dropdown'
;
$this
->
options
[
'data-toggle'
]
=
'dropdown'
;
Html
::
addCssClass
(
$this
->
options
,
'dropdown-toggle'
);
Html
::
addCssClass
(
$this
->
options
,
'dropdown-toggle'
);
unset
(
$this
->
options
[
'id'
]);
$splitButton
=
Button
::
widget
([
$splitButton
=
Button
::
widget
([
'label'
=>
'<span class="caret"></span>'
,
'label'
=>
'<span class="caret"></span>'
,
'encodeLabel'
=>
false
,
'encodeLabel'
=>
false
,
...
...
CHANGELOG.md
View file @
53db15c3
...
@@ -9,6 +9,7 @@ Yii Framework 2 bootstrap extension Change Log
...
@@ -9,6 +9,7 @@ Yii Framework 2 bootstrap extension Change Log
-
Enh #41: Added
`submenuOptions`
support at
`yii\bootstrap\Dropdown`
(spikyjt, klimov-paul)
-
Enh #41: Added
`submenuOptions`
support at
`yii\bootstrap\Dropdown`
(spikyjt, klimov-paul)
-
Enh #42: Added support for the glyphicons via
`yii\bootstrap\Html::icon()`
(klimov-paul)
-
Enh #42: Added support for the glyphicons via
`yii\bootstrap\Html::icon()`
(klimov-paul)
-
Enh #43: Added support for the static form controls via
`yii\bootstrap\Html`
(klimov-paul)
-
Enh #43: Added support for the static form controls via
`yii\bootstrap\Html`
(klimov-paul)
-
Enh #44: Fixed
`yii\bootstrap\ButtonDropdown`
renders two buttons have same with id if 'split' is enabled (klimov-paul)
2.0.4 May 10, 2015
2.0.4 May 10, 2015
...
...
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