PluginProbe
Team Showcase / 1.7
Team Showcase v1.7
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
← All changes | js/scripts-admin.js +1 -76 1.201.7 View file →
@@ -57,39 +57,8 @@
57 57
58 58 })
59 59
60 60
61 -
62 -
63 -
64 - $(document).on('click', '.reset_team_member_social_field', function()
65 - {
66 - //alert('Hello');
67 - if(confirm('Do you really want to reset ?')){
68 - jQuery.ajax(
69 - {
70 - type: 'POST',
71 - url: team_admin_ajax.team_admin_ajaxurl,
72 - data: {"action": "reset_team_member_social_field",},
73 - success: function(data)
74 - {
75 - //alert('Hello');
76 -
77 - window.location.reload();
78 - }
79 - });
80 -
81 - }
82 -
83 -
84 -
85 - })
86 -
87 -
88 -
89 -
90 -
91 -
92 61 $(document).on('click', '.new_team_member_social_field', function()
93 62 {
94 63 var user_profile_social = prompt("Please add new social site","");
95 64
@@ -94,9 +63,9 @@
94 63 var user_profile_social = prompt("Please add new social site","");
95 64
96 65 if(user_profile_social != null && user_profile_social != '')
97 66 {
98 - $(".team_member_social_field").append('<tr><td class="sorting"></td><td><input type="text" value="'+user_profile_social+'" name="team_member_social_field['+user_profile_social+'][name]"></td><td><input type="text" name="team_member_social_field['+user_profile_social+'][meta_key]" 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_field['+user_profile_social+'][icon]"></td><td><input type="checkbox" value="1" name="team_member_social_field['+user_profile_social+'][visibility]" checked=checked></td><td><span class="remove_icon">X</span><input type="hidden" value="yes" name="team_member_social_field['+user_profile_social+'][can_remove]"></td></tr>');
67 + $(".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>');
99 68 }
100 69
101 70
102 71 })
@@ -102,54 +71,10 @@
102 71 })
103 72
104 73
105 74
106 - $(document).on('click', '.add_team_member_skill', function()
107 - {
108 - var skill_name = prompt("Skill name ?","");
109 -
110 - if(skill_name != null && skill_name != '')
111 - {
112 - $(".team-member-skills").append('<tr><td class="sorting"></td><td><input type="text" value="'+skill_name+'" name="team_member_skill['+skill_name+'][name]" placeholder="Programming" size="30"></td><td><input type="text" value="" name="team_member_skill['+skill_name+'][value]" placeholder="80%" size="30"></td><td><span class="remove-skill">X</span></td></tr>');
113 - }
114 -
115 -
116 - })
117 75
118 76
119 - $(document).on('click', '.remove-skill', function()
120 - {
121 - if (confirm('Do you really want to delete this field ?')) {
122 -
123 - $(this).parent().parent().remove();
124 - }
125 - })
126 -
127 -
128 -
129 -
130 -
131 - $(document).on('click', '.add_team_member_meta', function()
132 - {
133 - var meta_name = prompt("Meta name ?","");
134 -
135 - if(meta_name != null && meta_name != '')
136 - {
137 - $(".team-member-meta-fields").append('<tr><td class="sorting"></td><td><input type="text" value="'+meta_name+'" name="team_member_meta_fields['+meta_name+'][name]" placeholder="" size="30"></td><td><input type="text" value="'+meta_name+'" name="team_member_meta_fields['+meta_name+'][meta_key]" placeholder="meta_key" size="30"></td><td><span class="remove-meta">X</span></td></tr>');
138 - }
139 -
140 -
141 - })
142 -
143 -
144 -
145 - $(document).on('click', '.team-member-meta-fields .remove-meta', function()
146 - {
147 - if (confirm('Do you really want to delete this field ?')) {
148 -
149 - $(this).parent().parent().remove();
150 - }
151 - })
152 77
153 78
154 79
155 80