# team/1.7/js/scripts-admin.js

Team Showcase, version 1.7. 83 lines.

- Page: https://pluginprobe.com/plugins/team/1.7/code/js/scripts-admin.js
- Raw: https://pluginprobe.com/plugins/team/1.7/raw/js/scripts-admin.js
- Modified: 2015-09-19T06:56:48+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/team/1.7/code/js/scripts-admin.js#L10-L20`.

```javascript

jQuery(document).ready(function($)
	{

		
		$(document).on('click', '.team-grid-builder .item .header', function()
			{	
			
				if($(this).parent().hasClass('active'))
					{
						$(this).parent().removeClass('active');
					}
				else
					{
						$(this).parent().addClass('active');
					}
				
			})	
		
		
		$(document).on('click', '.team_member_social_icon', function()
			{	
			var team_member_social_icon = prompt("Please insert icon url","");
			if(team_member_social_icon != null)
				{
					var icon_name = $(this).attr("icon-name");	
							
					$(this).css("background-image",'url('+team_member_social_icon+')');
						
					$(".team_member_social_icon_"+icon_name).val(team_member_social_icon);
				}



			})
			
			
			
		$(document).on('click', '.remove_icon', function()
			{	
				if (confirm('Do you really want to delete this field ?')) {
					
					$(this).parent().parent().remove();
				}
			})			
			
			
				
		
		$(document).on('click', '.team_content_source', function()
			{	
				var source = $(this).val();
				var source_id = $(this).attr("id");
				
				$(".content-source-box.active").removeClass("active");
				$(".content-source-box."+source_id).addClass("active");

			})
			
			
		$(document).on('click', '.new_team_member_social_field', function()
			{
				var user_profile_social = prompt("Please add new social site","");
				
				if(user_profile_social != null && user_profile_social != '')
					{
						$(".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>');
					}

		
			})
			
			
			
			
			
			
			
			
			

	});	

```
