Commit 4ce49194 by Crisu83

fixed some demo issues

parent b90a059a
...@@ -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',
)); ?> )); ?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment