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
343709ac
Commit
343709ac
authored
Apr 01, 2012
by
Ivan Pushkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix generating js in register event-handler
parent
cf04c538
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
BootTabbable.php
widgets/BootTabbable.php
+2
-2
No files found.
widgets/BootTabbable.php
View file @
343709ac
...
@@ -103,7 +103,7 @@ class BootTabbable extends BootWidget
...
@@ -103,7 +103,7 @@ class BootTabbable extends BootWidget
{
{
$fn
=
CJavaScript
::
encode
(
$this
->
events
[
'show'
]);
$fn
=
CJavaScript
::
encode
(
$this
->
events
[
'show'
]);
$cs
->
registerScript
(
__CLASS__
.
'#'
.
$id
.
'.show'
,
$cs
->
registerScript
(
__CLASS__
.
'#'
.
$id
.
'.show'
,
"jQuery('#
{
$id
}
a[data-toggle=
\"
tab
\"
').on('show',
{
$fn
}
);"
);
"jQuery('#
{
$id
}
a[data-toggle=
\"
tab
\"
]
').on('show',
{
$fn
}
);"
);
}
}
// Register the "shown" event-handler.
// Register the "shown" event-handler.
...
@@ -111,7 +111,7 @@ class BootTabbable extends BootWidget
...
@@ -111,7 +111,7 @@ class BootTabbable extends BootWidget
{
{
$fn
=
CJavaScript
::
encode
(
$this
->
events
[
'shown'
]);
$fn
=
CJavaScript
::
encode
(
$this
->
events
[
'shown'
]);
$cs
->
registerScript
(
__CLASS__
.
'#'
.
$id
.
'.shown'
,
$cs
->
registerScript
(
__CLASS__
.
'#'
.
$id
.
'.shown'
,
"jQuery('#
{
$id
}
a[data-toggle=
\"
tab
\"
').on('shown',
{
$fn
}
);"
);
"jQuery('#
{
$id
}
a[data-toggle=
\"
tab
\"
]
').on('shown',
{
$fn
}
);"
);
}
}
}
}
...
...
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