Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
Yii Bootstrap 3
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
Common
Yii Bootstrap 3
Commits
5d53f4e3
Commit
5d53f4e3
authored
Mar 17, 2013
by
Christoffer Niska
Browse files
Options
Browse Files
Download
Plain Diff
Merged in klimser/yii-bootstrap (pull request #53)
Fix for incorrect alerts "close" link shows
parents
bfedaa46
99839dc7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
TbAlert.php
widgets/TbAlert.php
+2
-4
No files found.
widgets/TbAlert.php
View file @
5d53f4e3
...
@@ -113,13 +113,11 @@ class TbAlert extends CWidget
...
@@ -113,13 +113,11 @@ class TbAlert extends CWidget
echo
CHtml
::
openTag
(
'div'
,
$alert
[
'htmlOptions'
]);
echo
CHtml
::
openTag
(
'div'
,
$alert
[
'htmlOptions'
]);
if
(
$this
->
closeText
!==
false
&&
!
isset
(
$alert
[
'closeText'
]))
if
(
!
isset
(
$alert
[
'closeText'
]))
$alert
[
'closeText'
]
=
$this
->
closeText
;
$alert
[
'closeText'
]
=
$this
->
closeText
;
else
$alert
[
'closeText'
]
=
false
;
if
(
$alert
[
'closeText'
]
!==
false
)
if
(
$alert
[
'closeText'
]
!==
false
)
echo
'<a class="close" data-dismiss="alert">'
.
$alert
[
'closeText'
]
.
'</a>'
;
echo
'<a
href="#"
class="close" data-dismiss="alert">'
.
$alert
[
'closeText'
]
.
'</a>'
;
echo
Yii
::
app
()
->
user
->
getFlash
(
$type
);
echo
Yii
::
app
()
->
user
->
getFlash
(
$type
);
...
...
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