| 1 |
jQuery(document).ready(function($) { |
| 2 |
//* Include colorpicker |
| 3 |
|
| 4 |
$('.wow-plugin .tab-nav li:first').addClass('select'); |
| 5 |
$('.wow-plugin .tab-panels>div').hide().filter(':first').show(); |
| 6 |
$('.wow-plugin .tab-nav a').click(function(){ |
| 7 |
$('.wow-plugin .tab-panels>div').hide().filter(this.hash).show(); |
| 8 |
$('.wow-plugin .tab-nav li').removeClass('select'); |
| 9 |
$(this).parent().addClass('select'); |
| 10 |
return (false); |
| 11 |
}) |
| 12 |
$('.wow-plugin input:checkbox:checked').each(function(){ |
| 13 |
var str = $(this).attr("id"); |
| 14 |
var check = str.replace("wow_", ""); |
| 15 |
$( "input[name='param["+check+"]']" ).val(1); |
| 16 |
}); |
| 17 |
|
| 18 |
$('.wow-plugin input[type="checkbox"]').change(function () { |
| 19 |
var str = $(this).attr("id"); |
| 20 |
var check = str.replace("wow_", ""); |
| 21 |
if($(this).prop('checked')){ |
| 22 |
$( "input[name='param["+check+"]']" ).val(1); |
| 23 |
} |
| 24 |
else { |
| 25 |
$( "input[name='param["+check+"]']" ).val(0); |
| 26 |
} |
| 27 |
}); |
| 28 |
|
| 29 |
wow_attach_tooltips($(".wow-help")); |
| 30 |
|
| 31 |
}); |
| 32 |
|
| 33 |
|
| 34 |
function wow_attach_tooltips(selector) { |
| 35 |
selector.tooltip({ |
| 36 |
content: function() { |
| 37 |
return jQuery(this).prop("title") |
| 38 |
}, |
| 39 |
tooltipClass: "wow-ui-tooltip", |
| 40 |
position: { |
| 41 |
my: "center top", |
| 42 |
at: "center bottom+10", |
| 43 |
collision: "flipfit" |
| 44 |
}, |
| 45 |
hide: { |
| 46 |
duration: 200 |
| 47 |
}, |
| 48 |
show: { |
| 49 |
duration: 200 |
| 50 |
} |
| 51 |
}) |
| 52 |
} |
| 53 |
|
| 54 |
|