PluginProbe
Team Showcase / 1.8
Team Showcase v1.8
trunk 1.0 1.1 1.11 1.13 1.14 1.15 1.16 1.17 1.18 1.19 1.2 1.20 1.21 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.22.0 1.22.1 1.22.10 1.22.12 1.22.13 1.22.14 All 49 releases
team / js / scripts.js

scripts.js in Team Showcase 1.8, at js/scripts.js

87 lines 2.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1
2 jQuery(document).ready(function($)
3 {
4
5
6 $(document).on('click', '.team-popup-box .close', function()
7 {
8 $('.team-popup-box').fadeOut();
9 $('.team-slide').fadeOut();
10
11 })
12
13
14 $(document).on('click', '.team-popup', function(event)
15 {
16 event.preventDefault();
17
18 var teamid = $(this).attr('teamid');
19 $('.team-popup-box-'+teamid).fadeIn();
20 $('.team-slide-'+teamid).css("display",'inline-block');
21
22 })
23
24
25 $(document).on('click', '.team_member_social_icon', function()
26 {
27 var team_member_social_icon = prompt("Please insert icon url","");
28 if(team_member_social_icon != null)
29 {
30 var icon_name = $(this).attr("icon-name");
31
32 $(this).css("background-image",'url('+team_member_social_icon+')');
33
34 $(".team_member_social_icon_"+icon_name).val(team_member_social_icon);
35 }
36
37
38
39 })
40
41
42
43 $(document).on('click', '.remove_icon', function()
44 {
45 if (confirm('Do you really want to delete this field ?')) {
46
47 $(this).parent().parent().remove();
48 }
49 })
50
51
52
53
54 $(document).on('click', '.team_content_source', function()
55 {
56 var source = $(this).val();
57 var source_id = $(this).attr("id");
58
59 $(".content-source-box.active").removeClass("active");
60 $(".content-source-box."+source_id).addClass("active");
61
62 })
63
64
65 $(document).on('click', '.new_team_member_social_field', function()
66 {
67 var user_profile_social = prompt("Please add new social site","");
68
69 if(user_profile_social != null && user_profile_social != '')
70 {
71 $(".team_member_social_field").append('<tr><td>*</td><td><input type="text" name="team_member_social_field['+user_profile_social+']" value="'+user_profile_social+'" /></td><td><span class="team_member_social_icon empty_icon" icon-name="'+user_profile_social+'" title="Icon for this field." style=" "></span><input class="team_member_social_icon team_member_social_icon_'+user_profile_social+'" type="hidden" value="" name="team_member_social_icon['+user_profile_social+']"><span class="remove_icon">X</span></td></tr>');
72 }
73
74
75 })
76
77
78
79
80
81
82
83
84
85
86 });
87