Mercurial > hg > rr-repo
comparison sites/all/modules/quicktabs/js/quicktabs_form.js @ 2:b74b41bb73f0
-- Google analytics module
author | danieleb <danielebarchiesi@me.com> |
---|---|
date | Thu, 22 Aug 2013 17:22:54 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1:67ce89da90df | 2:b74b41bb73f0 |
---|---|
1 (function ($) { | |
2 | |
3 Drupal.quicktabsShowHide = function() { | |
4 $(this).parents('tr').find('div.qt-tab-' + this.value + '-options-form').show().siblings('div.qt-tab-options-form').hide(); | |
5 }; | |
6 | |
7 Drupal.behaviors.quicktabsform = { | |
8 attach: function (context, settings) { | |
9 $('#quicktabs-form tr').once(function(){ | |
10 var currentRow = $(this); | |
11 currentRow.find('div.form-item :input[name*="type"]').bind('click', Drupal.quicktabsShowHide); | |
12 $(':input[name*="type"]:checked', this).trigger('click'); | |
13 }) | |
14 } | |
15 }; | |
16 | |
17 })(jQuery); |