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
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
PSDI Army
yii2
Commits
10e436ee
Commit
10e436ee
authored
Aug 12, 2013
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bootstrap Modal upgrade.
parent
07a04c52
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
Modal.php
framework/yii/bootstrap/Modal.php
+5
-1
No files found.
framework/yii/bootstrap/Modal.php
View file @
10e436ee
...
@@ -88,6 +88,8 @@ class Modal extends Widget
...
@@ -88,6 +88,8 @@ class Modal extends Widget
echo
$this
->
renderToggleButton
()
.
"
\n
"
;
echo
$this
->
renderToggleButton
()
.
"
\n
"
;
echo
Html
::
beginTag
(
'div'
,
$this
->
options
)
.
"
\n
"
;
echo
Html
::
beginTag
(
'div'
,
$this
->
options
)
.
"
\n
"
;
echo
Html
::
beginTag
(
'div'
,
array
(
'class'
=>
'modal-dialog'
))
.
"
\n
"
;
echo
Html
::
beginTag
(
'div'
,
array
(
'class'
=>
'modal-content'
))
.
"
\n
"
;
echo
$this
->
renderHeader
()
.
"
\n
"
;
echo
$this
->
renderHeader
()
.
"
\n
"
;
echo
$this
->
renderBodyBegin
()
.
"
\n
"
;
echo
$this
->
renderBodyBegin
()
.
"
\n
"
;
}
}
...
@@ -99,6 +101,8 @@ class Modal extends Widget
...
@@ -99,6 +101,8 @@ class Modal extends Widget
{
{
echo
"
\n
"
.
$this
->
renderBodyEnd
();
echo
"
\n
"
.
$this
->
renderBodyEnd
();
echo
"
\n
"
.
$this
->
renderFooter
();
echo
"
\n
"
.
$this
->
renderFooter
();
echo
"
\n
"
.
Html
::
endTag
(
'div'
);
// modal-content
echo
"
\n
"
.
Html
::
endTag
(
'div'
);
// modal-dialog
echo
"
\n
"
.
Html
::
endTag
(
'div'
);
echo
"
\n
"
.
Html
::
endTag
(
'div'
);
$this
->
registerPlugin
(
'modal'
);
$this
->
registerPlugin
(
'modal'
);
...
@@ -195,7 +199,7 @@ class Modal extends Widget
...
@@ -195,7 +199,7 @@ class Modal extends Widget
protected
function
initOptions
()
protected
function
initOptions
()
{
{
$this
->
options
=
array_merge
(
array
(
$this
->
options
=
array_merge
(
array
(
'class'
=>
'modal
hi
de'
,
'class'
=>
'modal
fa
de'
,
),
$this
->
options
);
),
$this
->
options
);
Html
::
addCssClass
(
$this
->
options
,
'modal'
);
Html
::
addCssClass
(
$this
->
options
,
'modal'
);
...
...
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