Guest User

Untitled

a guest
Jan 21st, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. <script type="text/javascript">
  2. function test(e){
  3. console.log(e.target);
  4. //load ajax stuff here
  5. }
  6. </script>
  7.  
  8.  
  9. <?php
  10. $this->widget('bootstrap.widgets.TbTabs', array(
  11. 'type'=>'tabs',
  12. 'placement'=>'above', // 'above', 'right', 'below' or 'left'
  13. 'tabs'=>array(
  14. array('label'=>'Ogólne', 'content'=>'Czekaj...', 'active'=>true),
  15. array('label'=>'Książka adresów', 'content'=>'Czekaj...'),
  16. array('label'=>'Cośtam', 'content'=>'Czekaj...'),
  17. ),
  18. 'events'=>array('shown'=>'test')
  19. )); ?>
  20.  
  21. <script type="text/javascript">
  22. /*<![CDATA[*/
  23. jQuery(function($) {
  24. jQuery('a[rel="tooltip"]').tooltip();
  25. jQuery('a[rel="popover"]').popover();
  26. jQuery('#yw0').tab('show');
  27. jQuery('#yw0').on('shown', 'test');
  28. jQuery('#collapse_0').collapse({'parent':false,'toggle':false});
  29. });
  30. /*]]>*/
  31. </script>
  32.  
  33. <script type="text/javascript">
  34. var test = function(e) {
  35. console.log(e.target);
  36. //load ajax stuff here
  37. }
  38. </script>
  39.  
  40. <?php
  41. ...
  42. 'events'=>array('shown'=>'js:test'),
  43. ....
  44. ?>
Add Comment
Please, Sign In to add comment