| 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 |
|