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
4ce49194
Commit
4ce49194
authored
Aug 02, 2012
by
Crisu83
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed some demo issues
parent
b90a059a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
index.php
demo/protected/views/site/index.php
+9
-4
No files found.
demo/protected/views/site/index.php
View file @
4ce49194
...
@@ -17,8 +17,17 @@ Yii::app()->clientScript->registerScript('siteIndex', "
...
@@ -17,8 +17,17 @@ Yii::app()->clientScript->registerScript('siteIndex', "
// Prevent jumping to the top of the page when demo links are clicked.
// Prevent jumping to the top of the page when demo links are clicked.
jQuery('.site-index a').on('click', function(e) {
jQuery('.site-index a').on('click', function(e) {
var element = $(this),
href = element.attr('href'),
toggle = element.attr('data-toggle');
if ((href && (href.length === 0 || href === '#')) && !toggle) {
return false;
return false;
}
});
});
// Prevent form submission.
jQuery('.site-index form').on('submit', false);
"
);
"
);
?>
?>
<div
class=
"site-index"
>
<div
class=
"site-index"
>
...
@@ -34,7 +43,6 @@ Yii::app()->clientScript->registerScript('siteIndex', "
...
@@ -34,7 +43,6 @@ Yii::app()->clientScript->registerScript('siteIndex', "
<?php
$this
->
widget
(
'bootstrap.widgets.TbButton'
,
array
(
<?php
$this
->
widget
(
'bootstrap.widgets.TbButton'
,
array
(
'label'
=>
'Primary'
,
'type'
=>
'primary'
,
'size'
=>
'large'
,
'label'
=>
'Primary'
,
'type'
=>
'primary'
,
'size'
=>
'large'
,
));
?>
));
?>
<?php
$this
->
widget
(
'bootstrap.widgets.TbButton'
,
array
(
<?php
$this
->
widget
(
'bootstrap.widgets.TbButton'
,
array
(
'label'
=>
'Action'
,
'size'
=>
'large'
,
'label'
=>
'Action'
,
'size'
=>
'large'
,
));
?>
));
?>
...
@@ -47,7 +55,6 @@ Yii::app()->clientScript->registerScript('siteIndex', "
...
@@ -47,7 +55,6 @@ Yii::app()->clientScript->registerScript('siteIndex', "
<?php
$this
->
widget
(
'bootstrap.widgets.TbButton'
,
array
(
<?php
$this
->
widget
(
'bootstrap.widgets.TbButton'
,
array
(
'label'
=>
'Primary'
,
'type'
=>
'primary'
,
'label'
=>
'Primary'
,
'type'
=>
'primary'
,
));
?>
));
?>
<?php
$this
->
widget
(
'bootstrap.widgets.TbButton'
,
array
(
<?php
$this
->
widget
(
'bootstrap.widgets.TbButton'
,
array
(
'label'
=>
'Action'
,
'label'
=>
'Action'
,
));
?>
));
?>
...
@@ -60,7 +67,6 @@ Yii::app()->clientScript->registerScript('siteIndex', "
...
@@ -60,7 +67,6 @@ Yii::app()->clientScript->registerScript('siteIndex', "
<?php
$this
->
widget
(
'bootstrap.widgets.TbButton'
,
array
(
<?php
$this
->
widget
(
'bootstrap.widgets.TbButton'
,
array
(
'label'
=>
'Primary'
,
'type'
=>
'primary'
,
'size'
=>
'small'
,
'label'
=>
'Primary'
,
'type'
=>
'primary'
,
'size'
=>
'small'
,
));
?>
));
?>
<?php
$this
->
widget
(
'bootstrap.widgets.TbButton'
,
array
(
<?php
$this
->
widget
(
'bootstrap.widgets.TbButton'
,
array
(
'label'
=>
'Action'
,
'size'
=>
'small'
,
'label'
=>
'Action'
,
'size'
=>
'small'
,
));
?>
));
?>
...
@@ -73,7 +79,6 @@ Yii::app()->clientScript->registerScript('siteIndex', "
...
@@ -73,7 +79,6 @@ Yii::app()->clientScript->registerScript('siteIndex', "
<?php
$this
->
widget
(
'bootstrap.widgets.TbButton'
,
array
(
<?php
$this
->
widget
(
'bootstrap.widgets.TbButton'
,
array
(
'label'
=>
'Primary'
,
'type'
=>
'primary'
,
'size'
=>
'mini'
,
'label'
=>
'Primary'
,
'type'
=>
'primary'
,
'size'
=>
'mini'
,
));
?>
));
?>
<?php
$this
->
widget
(
'bootstrap.widgets.TbButton'
,
array
(
<?php
$this
->
widget
(
'bootstrap.widgets.TbButton'
,
array
(
'label'
=>
'Action'
,
'size'
=>
'mini'
,
'label'
=>
'Action'
,
'size'
=>
'mini'
,
));
?>
));
?>
...
...
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