Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
fce33a25
Commit
fce33a25
authored
May 29, 2013
by
Antonio Ramirez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed indentation and button group label bug
parent
f651e723
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
Button.php
framework/yii/bootstrap/Button.php
+12
-11
No files found.
framework/yii/bootstrap/Button.php
View file @
fce33a25
...
@@ -22,18 +22,17 @@ use yii\helpers\Html;
...
@@ -22,18 +22,17 @@ use yii\helpers\Html;
* 'label' => 'Action',
* 'label' => 'Action',
* 'items' => Dropdown::widget(array(
* 'items' => Dropdown::widget(array(
* 'clientOptions' => false,
* 'clientOptions' => false,
* 'items' => array(
* 'items' => array(
* array(
* array(
* 'label' => 'DropdownA',
* 'label' => 'DropdownA',
* 'url' => '/',
* 'url' => '/',
* ),
* ),
* array(
* array(
* 'label' => 'DropdownB',
* 'label' => 'DropdownB',
* 'url' => '#',
* 'url' => '#',
* ),
* ),
* ),
* ),
* ),
*
),
*
)
),
* ));
* ));
*
*
* // split button group using `items` dropdown configuration
* // split button group using `items` dropdown configuration
...
@@ -134,10 +133,12 @@ class Button extends Widget
...
@@ -134,10 +133,12 @@ class Button extends Widget
$splitButton
=
Html
::
tag
(
'button'
,
'<span class="caret"></span>'
,
$this
->
buttonOptions
);
$splitButton
=
Html
::
tag
(
'button'
,
'<span class="caret"></span>'
,
$this
->
buttonOptions
);
}
else
{
}
else
{
$tag
=
'a'
;
$tag
=
'a'
;
$label
.=
' <span class="caret"></span>'
;
$options
=
$this
->
buttonOptions
;
$options
=
$this
->
buttonOptions
;
if
(
!
isset
(
$options
[
'href'
]))
{
if
(
!
isset
(
$options
[
'href'
]))
{
$options
[
'href'
]
=
'#'
;
$options
[
'href'
]
=
'#'
;
}
}
$this
->
addCssClass
(
$options
,
'dropdown-toggle'
);
$options
[
'data-toggle'
]
=
'dropdown'
;
$options
[
'data-toggle'
]
=
'dropdown'
;
}
}
return
Html
::
tag
(
$tag
,
$label
,
$options
)
.
"
\n
"
.
$splitButton
;
return
Html
::
tag
(
$tag
,
$label
,
$options
)
.
"
\n
"
.
$splitButton
;
...
...
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