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
99839dc7
Commit
99839dc7
authored
Feb 05, 2013
by
Sergey Klimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Alerts bug fix (close link shows incorrect)
Corrected close link (with twitter bootstrap recommendations)
parent
77642af8
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 @
99839dc7
...
...
@@ -113,13 +113,11 @@ class TbAlert extends CWidget
echo
CHtml
::
openTag
(
'div'
,
$alert
[
'htmlOptions'
]);
if
(
$this
->
closeText
!==
false
&&
!
isset
(
$alert
[
'closeText'
]))
if
(
!
isset
(
$alert
[
'closeText'
]))
$alert
[
'closeText'
]
=
$this
->
closeText
;
else
$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
);
...
...
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