PluginProbe
WP Coder – Insert & Manage Code Snippets / 2.3.1
WP Coder – Insert & Manage Code Snippets v2.3.1
4.5.1 1.1 2.3.1 2.3.2 2.4.1 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.1 3.1.1 3.2 3.2.1 3.3 3.4 3.5 3.5.1 All 39 releases
wp-coder / assets / js / admin.js

admin.js in WP Coder – Insert & Manage Code Snippets 2.3.1, at assets/js/admin.js

54 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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