Commit b62b5557 by niskac

changed the BootModal widget id in the demo (fixes #53)

parent fb8c2544
...@@ -556,7 +556,7 @@ Yii::app()->user->setFlash('error', '<strong>Oh snap!</strong> Change a few thin ...@@ -556,7 +556,7 @@ Yii::app()->user->setFlash('error', '<strong>Oh snap!</strong> Change a few thin
<h2>Modals</h2> <h2>Modals</h2>
<?php $this->beginWidget('bootstrap.widgets.BootModal', array( <?php $this->beginWidget('bootstrap.widgets.BootModal', array(
'id'=>'modal', 'id'=>'myModal',
'events'=>array( 'events'=>array(
'show'=>"js:function() { console.log('Modal show.'); }", 'show'=>"js:function() { console.log('Modal show.'); }",
'shown'=>"js:function() { console.log('Modal shown.'); }", 'shown'=>"js:function() { console.log('Modal shown.'); }",
...@@ -582,7 +582,7 @@ Yii::app()->user->setFlash('error', '<strong>Oh snap!</strong> Change a few thin ...@@ -582,7 +582,7 @@ Yii::app()->user->setFlash('error', '<strong>Oh snap!</strong> Change a few thin
<?php $this->endWidget(); ?> <?php $this->endWidget(); ?>
<div class="well"> <div class="well">
<?php echo CHtml::link('Click me','#modal', array( <?php echo CHtml::link('Click me','#myModal', array(
'class'=>'btn btn-primary', 'class'=>'btn btn-primary',
'data-toggle'=>'modal', 'data-toggle'=>'modal',
)); ?> )); ?>
...@@ -590,7 +590,7 @@ Yii::app()->user->setFlash('error', '<strong>Oh snap!</strong> Change a few thin ...@@ -590,7 +590,7 @@ Yii::app()->user->setFlash('error', '<strong>Oh snap!</strong> Change a few thin
<h4>Source code</h4> <h4>Source code</h4>
<?php echo $phpLighter->highlight("<?php \$this->beginWidget('bootstrap.widgets.BootModal', array('id'=>'modal')); ?> <?php echo $phpLighter->highlight("<?php \$this->beginWidget('bootstrap.widgets.BootModal', array('id'=>'myModal')); ?>
<div class=\"modal-header\"> <div class=\"modal-header\">
<a class=\"close\" data-dismiss=\"modal\">&times;</a> <a class=\"close\" data-dismiss=\"modal\">&times;</a>
...@@ -617,7 +617,7 @@ Yii::app()->user->setFlash('error', '<strong>Oh snap!</strong> Change a few thin ...@@ -617,7 +617,7 @@ Yii::app()->user->setFlash('error', '<strong>Oh snap!</strong> Change a few thin
<?php \$this->endWidget(); ?> <?php \$this->endWidget(); ?>
<?php echo CHtml::link('Click me','#modal', array('class'=>'btn btn-primary', 'data-toggle'=>'modal')); ?>"); ?> <?php echo CHtml::link('Click me','#myModal', array('class'=>'btn btn-primary', 'data-toggle'=>'modal')); ?>"); ?>
<a class="top" href="#top">Back to top &uarr;</a> <a class="top" href="#top">Back to top &uarr;</a>
......
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