Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- function test(e){
- console.log(e.target);
- //load ajax stuff here
- }
- </script>
- <?php
- $this->widget('bootstrap.widgets.TbTabs', array(
- 'type'=>'tabs',
- 'placement'=>'above', // 'above', 'right', 'below' or 'left'
- 'tabs'=>array(
- array('label'=>'Ogólne', 'content'=>'Czekaj...', 'active'=>true),
- array('label'=>'Książka adresów', 'content'=>'Czekaj...'),
- array('label'=>'Cośtam', 'content'=>'Czekaj...'),
- ),
- 'events'=>array('shown'=>'test')
- )); ?>
- <script type="text/javascript">
- /*<![CDATA[*/
- jQuery(function($) {
- jQuery('a[rel="tooltip"]').tooltip();
- jQuery('a[rel="popover"]').popover();
- jQuery('#yw0').tab('show');
- jQuery('#yw0').on('shown', 'test');
- jQuery('#collapse_0').collapse({'parent':false,'toggle':false});
- });
- /*]]>*/
- </script>
- <script type="text/javascript">
- var test = function(e) {
- console.log(e.target);
- //load ajax stuff here
- }
- </script>
- <?php
- ...
- 'events'=>array('shown'=>'js:test'),
- ....
- ?>
Add Comment
Please, Sign In to add comment