Team Members - Version 4.1.2

Version Description

  • Replaces deprecated jQuery methods.
Download this release

Release Info

Developer spwebguy
Plugin Icon 128x128 Team Members
Version 4.1.2
Comparing to
See all releases

Code changes from version 4.1.1 to 4.1.2

Files changed (4) hide show
  1. inc/dmb/dmb.js +7 -7
  2. inc/dmb/dmb.min.js +4 -4
  3. readme.txt +33 -8
  4. tmm.php +1 -1
inc/dmb/dmb.js CHANGED
@@ -101,11 +101,11 @@ $(document).ready(function (){
101
 
102
 
103
  /* Defines trigger for single input update. */
104
- $('.dmb_field').live("keyup", function(e) { dmbGatherData($(this)); });
105
 
106
- $('.dmb_scl_type_select').live("change", function(e) { dmbGatherData($(this)); });
107
 
108
- $('.dmb_img_data_url').live("change", function(e) { dmbGatherData($(this)); });
109
 
110
 
111
  /* Shows img/remove button if exists on page load. */
@@ -150,7 +150,7 @@ $(document).ready(function (){
150
 
151
 
152
  /* Removes member's img. */
153
- $('.dmb_remove_img_btn').live("click", function(e) {
154
 
155
  $(this).parent().find('.dmb_img').remove();
156
 
@@ -371,8 +371,8 @@ $(document).ready(function (){
371
 
372
 
373
  /* Watches member firstname/lastname and updates handle. */
374
- $('.dmb_firstname_of_member').live("keyup", function(e) { updateHandleTitle($(this)); });
375
- $('.dmb_lastname_of_member').live("keyup", function(e) {
376
  firstnameField = $(this).closest('.dmb_main').find('.dmb_firstname_of_member');
377
  updateHandleTitle(firstnameField);
378
  });
@@ -601,7 +601,7 @@ $(document).ready(function (){
601
 
602
 
603
  /* Fallback editor (keyup) */
604
- $('#acf-fallback-bio').live('paste keyup', debounce(function(){
605
 
606
  $(this).siblings('.dmb_description_of_member_fb').text($(this).val());
607
  dmbGatherData($(this));
101
 
102
 
103
  /* Defines trigger for single input update. */
104
+ $('body').on('keyup', '.dmb_field', function(e) { dmbGatherData($(this)); });
105
 
106
+ $('body').on('change', '.dmb_scl_type_select', function(e) { dmbGatherData($(this)); });
107
 
108
+ $('body').on('change', '.dmb_img_data_url', function(e) { dmbGatherData($(this)); });
109
 
110
 
111
  /* Shows img/remove button if exists on page load. */
150
 
151
 
152
  /* Removes member's img. */
153
+ $('body').on('click', '.dmb_remove_img_btn', function(e) {
154
 
155
  $(this).parent().find('.dmb_img').remove();
156
 
371
 
372
 
373
  /* Watches member firstname/lastname and updates handle. */
374
+ $('.dmb_firstname_of_member').on('keyup', '.dmb_firstname_of_member', function(e) { updateHandleTitle($(this)); });
375
+ $('body').on('keyup', '.dmb_lastname_of_member', function(e) {
376
  firstnameField = $(this).closest('.dmb_main').find('.dmb_firstname_of_member');
377
  updateHandleTitle(firstnameField);
378
  });
601
 
602
 
603
  /* Fallback editor (keyup) */
604
+ $('body').on('paste keyup', '#acf-fallback-bio', debounce(function(){
605
 
606
  $(this).siblings('.dmb_description_of_member_fb').text($(this).val());
607
  dmbGatherData($(this));
inc/dmb/dmb.min.js CHANGED
@@ -6,13 +6,13 @@
6
  function dmb_hex(x){return isNaN(x)?"00":hexDigits[(x-x%16)/16]+hexDigits[x%16]}
7
  $('.dmb_color_picker').each(function(i,obj){$(this).wpColorPicker()});function dmbGatherData(keyUpParam){var member=keyUpParam.closest('.dmb_main'),firstname=member.find('.dmb_firstname_of_member').val()||'',lastname=member.find('.dmb_lastname_of_member').val()||'',job=member.find('.dmb_job_of_member').val()||'';if($('#acf-fallback-bio').length){description=$.trim(member.find('.dmb_description_of_member_fb').text())||''}else{description=$.trim(member.find('.dmb_description_of_member').html())||''}
8
  var sclType1=member.find('.dmb_scl_type1_of_member').val()||'',sclTitle1=member.find('.dmb_scl_title1_of_member').val()||'',sclUrl1=member.find('.dmb_scl_url1_of_member').val()||'',sclType2=member.find('.dmb_scl_type2_of_member').val()||'',sclTitle2=member.find('.dmb_scl_title2_of_member').val()||'',sclUrl2=member.find('.dmb_scl_url2_of_member').val()||'',sclType3=member.find('.dmb_scl_type3_of_member').val()||'',sclTitle3=member.find('.dmb_scl_title3_of_member').val()||'',sclUrl3=member.find('.dmb_scl_url3_of_member').val()||'',memberPhoto=member.find('.dmb_img_data_url').attr('data-img')||'',memberPhotoUrl=member.find('.dmb_photo_url_of_member').val()||'',dataDump=member.find('.dmb_data_dump');dataDump.val(firstname+']--['+lastname+']--['+job+']--['+description+']--['+sclType1+']--['+sclTitle1+']--['+sclUrl1+']--['+sclType2+']--['+sclTitle2+']--['+sclUrl2+']--['+sclType3+']--['+sclTitle3+']--['+sclUrl3+']--['+memberPhoto+']--['+memberPhotoUrl)}
9
- $('.dmb_field').live("keyup",function(e){dmbGatherData($(this))});$('.dmb_scl_type_select').live("change",function(e){dmbGatherData($(this))});$('.dmb_img_data_url').live("change",function(e){dmbGatherData($(this))});$('.dmb_img_data_url').each(function(i,obj){var imgUrl=$(this).attr("data-img");if(imgUrl!=''){$("<a class='dmb_remove_img_btn dmb_small_button_secondary' href='#'><span class='dashicons dashicons-no-alt'></span></a><img src='"+imgUrl+"' class='dmb_img'/>").insertAfter($(this).parent().find('.dmb_upload_img_btn'))}});$('.dmb_main').not('.dmb_empty_row').each(function(i,obj){$(this).find('.dmb_description_of_member').each(function(i,obj){if($.trim($(this).text())==''){$(this).hide()}else{$(this).show()}
10
  $(this).html($.parseHTML($(this).text()))});dmbGatherData($(this).find('.dmb_field').first())});function refreshRowCountRelatedUI(){if($('.dmb_main').not('.dmb_empty_row').length>0){$('.dmb_no_row_notice').hide()}else{$('.dmb_no_row_notice').show()}}
11
- refreshRowCountRelatedUI();$('.dmb_remove_img_btn').live("click",function(e){$(this).parent().find('.dmb_img').remove();$(this).parent().find('.dmb_img_data_url').attr('data-img','').trigger('change');$(this).remove();return!1});$('.dmb_upload_img_btn').click(function(e){e.preventDefault();var button=$(this),custom_uploader=wp.media({title:'Insert image',library:{type:'image'},button:{text:'Use this image'},multiple:!1}).on('select',function(){var attachment=custom_uploader.state().get('selection').first().toJSON();$("<a class='dmb_remove_img_btn dmb_small_button_secondary' href='#'><span class='dashicons dashicons-no-alt'></span></a><img src='"+attachment.url+"' class='dmb_img'/>").insertAfter(button);button.siblings('.dmb_img_data_url').attr('data-img',attachment.url).trigger('change')}).open()});$('.dmb_add_row').on('click',function(){var row=$('.dmb_empty_row').clone(!0);row.removeClass('dmb_empty_row').addClass('dmb_main').show();row.insertBefore($('.dmb_empty_row'));row.find('.dmb_firstname_of_member').focus();row.find('.dmb_color_picker_ready').removeClass('.dmb_color_picker_ready').addClass('.dmb_color_picker').wpColorPicker().css({'padding':'3px'});row.find('.dmb_handle_title').html(objectL10n.untitled);row.find('.dmb_description_of_member').hide();refreshRowCountRelatedUI();return!1});$('.dmb_remove_row_btn').click(function(e){$(this).closest('.dmb_main').remove();refreshRowCountRelatedUI();return!1});$('.dmb_handle').click(function(e){$(this).siblings('.dmb_inner').slideToggle(50);($(this).hasClass('closed'))?$(this).removeClass('closed'):$(this).addClass('closed');return!1});$('.dmb_collapse_rows').click(function(e){$('.dmb_handle').each(function(i,obj){if(!$(this).closest('.dmb_empty_row').length){if($(this).hasClass('closed')){}else{$(this).siblings('.dmb_inner').slideToggle(50);$(this).addClass('closed')}}});return!1});$('.dmb_expand_rows').click(function(e){$('.dmb_handle').each(function(i,obj){if($(this).hasClass('closed')){$(this).siblings('.dmb_inner').slideToggle(50);$(this).removeClass('closed')}});return!1});$('.dmb_move_row_down').click(function(e){if($(this).closest('.dmb_main').next().hasClass('dmb_main')){var movingRow=$(this).closest('.dmb_main').clone(!0);movingRow.insertAfter($(this).closest('.dmb_main').next());$(this).closest('.dmb_main').remove()}
12
  return!1});$('.dmb_move_row_up').click(function(e){if($(this).closest('.dmb_main').prev().hasClass('dmb_main')){var movingRow=$(this).closest('.dmb_main').clone(!0);movingRow.insertBefore($(this).closest('.dmb_main').prev());$(this).closest('.dmb_main').remove()}
13
  return!1});$('.dmb_clone_row').click(function(e){var clone=$(this).closest('.dmb_main').clone(!0);clone.insertAfter($(this).closest('.dmb_main'));clone.find('.dmb_handle_title').html(clone.find('.dmb_firstname_of_member').val()+' ('+objectL10n.copy+')');clone.find('.dmb_firstname_of_member').focus();updateHandleTitle(clone.find('.dmb_firstname_of_member'),!0);refreshRowCountRelatedUI();return!1});$('.dmb_main').not('.dmb_empty_row').each(function(i,obj){if($(this).find('.dmb_firstname_of_member').val()!=''){var handleTitle=$(this).find('.dmb_handle_title'),firstname=$(this).find('.dmb_firstname_of_member').val(),lastname=$(this).find('.dmb_lastname_of_member').val();handleTitle.html(firstname+' '+lastname)}});function updateHandleTitle(firstnameField,wasCloned){if(!wasCloned){wasCloned=!1}
14
  var firstnameField=firstnameField,lastname=firstnameField.closest('.dmb_main').find('.dmb_lastname_of_member').val()||'';handleTitle=firstnameField.closest('.dmb_main').find('.dmb_handle_title');cloneCopyText='';(wasCloned)?cloneCopyText=' copy':cloneCopyText='';(firstnameField.val()!='')?handleTitle.html(firstnameField.val()+' '+lastname+cloneCopyText):handleTitle.html(objectL10n.untitled+cloneCopyText)}
15
- $('.dmb_firstname_of_member').live("keyup",function(e){updateHandleTitle($(this))});$('.dmb_lastname_of_member').live("keyup",function(e){firstnameField=$(this).closest('.dmb_main').find('.dmb_firstname_of_member');updateHandleTitle(firstnameField)});$('.dmb_show_preview_team').click(function(){var settings={};var team={};var preview_html='';settings.columns=$("select[name='team_columns'] option:selected").val();settings.bio_alignment=$("select[name='team_bio_align'] option:selected").val();settings.piclink_beh=$("select[name='team_piclink_beh'] option:selected").val();settings.piclink_beh=='new'?team.plb='target="_blank"':team.plb='';settings.color=dmb_rgb2hex($('.dmb_color_of_team').find(".wp-color-result").css('backgroundColor'))||'#8dba09';team.memberCount=$('.dmb_main').not('.dmb_empty_row').size();preview_html+='<div class="tmm" style="margin-top: 100px;">';preview_html+='<div class="tmm_'+settings.columns+'_columns tmm_wrap '+team.ori_f+'">';$('.dmb_main').not('.dmb_empty_row').each(function(i,obj){var fields={};fields.firstname=$(this).find(".dmb_firstname_of_member").val();fields.lastname=$(this).find(".dmb_lastname_of_member").val();fields.job=$(this).find(".dmb_job_of_member").val();if($('#acf-fallback-bio').length){fields.bio=$.trim($(this).find('.dmb_description_of_member_fb').text())||''}else{fields.bio=$.trim($(this).find('.dmb_description_of_member').html())||''}
16
  fields.scl_type1=$(this).find(".dmb_scl_type1_of_member").find(":selected").val();fields.scl_title1=$(this).find(".dmb_scl_title1_of_member").val();fields.scl_url1=$(this).find(".dmb_scl_url1_of_member").val();fields.scl_type2=$(this).find(".dmb_scl_type2_of_member").find(":selected").val();fields.scl_title2=$(this).find(".dmb_scl_title2_of_member").val();fields.scl_url2=$(this).find(".dmb_scl_url2_of_member").val();fields.scl_type3=$(this).find(".dmb_scl_type3_of_member").find(":selected").val();fields.scl_title3=$(this).find(".dmb_scl_title3_of_member").val();fields.scl_url3=$(this).find(".dmb_scl_url3_of_member").val();fields.photoUrl=$(this).find(".dmb_img").attr('src');fields.photoLinkUrl=$(this).find(".dmb_photo_url_of_member").val();if(i%2==0){preview_html+='<span class="tmm_two_containers_tablet"></span>'}
17
  if(i%settings.columns==0){if(i>0){preview_html+='</div><span class="tmm_columns_containers_desktop"></span>'}
18
  preview_html+='<div class="tmm_container">'}
@@ -30,4 +30,4 @@ $('#dmb_unique_editor').fadeIn(100);if(tinyMCE.activeEditor!==null){tinyMCE.acti
30
  if(!$('#acf-fallback-bio').length){$('.dmb_ue_update').click(function(){if($("#wp-dmb_editor-wrap").hasClass("tmce-active")){var dmb_ue_content=tinyMCE.activeEditor.getContent()}else{var dmb_ue_content=$('#dmb_editor').val()}(!dmb_ue_content)?lastEditedBio.hide():lastEditedBio.show();lastEditedBio.html($.parseHTML(dmb_ue_content));$('#dmb_unique_editor').fadeOut(100);if(tinymce.activeEditor!==null){tinymce.activeEditor.setContent('')}
31
  dmbGatherData(lastEditedBio);return!1})}
32
  if(!$('#acf-fallback-bio').length){$('.dmb_ue_cancel').click(function(){$('#dmb_unique_editor').fadeOut(100)})}
33
- function debounce(func,wait,immediate){var timeout;return function(){var context=this,args=arguments;var later=function(){timeout=null;if(!immediate)func.apply(context,args)};var callNow=immediate&&!timeout;clearTimeout(timeout);timeout=setTimeout(later,wait);if(callNow)func.apply(context,args)}};$('#acf-fallback-bio').live('paste keyup',debounce(function(){$(this).siblings('.dmb_description_of_member_fb').text($(this).val());dmbGatherData($(this))},600))})})(jQuery);
6
  function dmb_hex(x){return isNaN(x)?"00":hexDigits[(x-x%16)/16]+hexDigits[x%16]}
7
  $('.dmb_color_picker').each(function(i,obj){$(this).wpColorPicker()});function dmbGatherData(keyUpParam){var member=keyUpParam.closest('.dmb_main'),firstname=member.find('.dmb_firstname_of_member').val()||'',lastname=member.find('.dmb_lastname_of_member').val()||'',job=member.find('.dmb_job_of_member').val()||'';if($('#acf-fallback-bio').length){description=$.trim(member.find('.dmb_description_of_member_fb').text())||''}else{description=$.trim(member.find('.dmb_description_of_member').html())||''}
8
  var sclType1=member.find('.dmb_scl_type1_of_member').val()||'',sclTitle1=member.find('.dmb_scl_title1_of_member').val()||'',sclUrl1=member.find('.dmb_scl_url1_of_member').val()||'',sclType2=member.find('.dmb_scl_type2_of_member').val()||'',sclTitle2=member.find('.dmb_scl_title2_of_member').val()||'',sclUrl2=member.find('.dmb_scl_url2_of_member').val()||'',sclType3=member.find('.dmb_scl_type3_of_member').val()||'',sclTitle3=member.find('.dmb_scl_title3_of_member').val()||'',sclUrl3=member.find('.dmb_scl_url3_of_member').val()||'',memberPhoto=member.find('.dmb_img_data_url').attr('data-img')||'',memberPhotoUrl=member.find('.dmb_photo_url_of_member').val()||'',dataDump=member.find('.dmb_data_dump');dataDump.val(firstname+']--['+lastname+']--['+job+']--['+description+']--['+sclType1+']--['+sclTitle1+']--['+sclUrl1+']--['+sclType2+']--['+sclTitle2+']--['+sclUrl2+']--['+sclType3+']--['+sclTitle3+']--['+sclUrl3+']--['+memberPhoto+']--['+memberPhotoUrl)}
9
+ $('body').on('keyup','.dmb_field',function(e){dmbGatherData($(this))});$('body').on('change','.dmb_scl_type_select',function(e){dmbGatherData($(this))});$('body').on('change','.dmb_img_data_url',function(e){dmbGatherData($(this))});$('.dmb_img_data_url').each(function(i,obj){var imgUrl=$(this).attr("data-img");if(imgUrl!=''){$("<a class='dmb_remove_img_btn dmb_small_button_secondary' href='#'><span class='dashicons dashicons-no-alt'></span></a><img src='"+imgUrl+"' class='dmb_img'/>").insertAfter($(this).parent().find('.dmb_upload_img_btn'))}});$('.dmb_main').not('.dmb_empty_row').each(function(i,obj){$(this).find('.dmb_description_of_member').each(function(i,obj){if($.trim($(this).text())==''){$(this).hide()}else{$(this).show()}
10
  $(this).html($.parseHTML($(this).text()))});dmbGatherData($(this).find('.dmb_field').first())});function refreshRowCountRelatedUI(){if($('.dmb_main').not('.dmb_empty_row').length>0){$('.dmb_no_row_notice').hide()}else{$('.dmb_no_row_notice').show()}}
11
+ refreshRowCountRelatedUI();$('body').on('click','.dmb_remove_img_btn',function(e){$(this).parent().find('.dmb_img').remove();$(this).parent().find('.dmb_img_data_url').attr('data-img','').trigger('change');$(this).remove();return!1});$('.dmb_upload_img_btn').click(function(e){e.preventDefault();var button=$(this),custom_uploader=wp.media({title:'Insert image',library:{type:'image'},button:{text:'Use this image'},multiple:!1}).on('select',function(){var attachment=custom_uploader.state().get('selection').first().toJSON();$("<a class='dmb_remove_img_btn dmb_small_button_secondary' href='#'><span class='dashicons dashicons-no-alt'></span></a><img src='"+attachment.url+"' class='dmb_img'/>").insertAfter(button);button.siblings('.dmb_img_data_url').attr('data-img',attachment.url).trigger('change')}).open()});$('.dmb_add_row').on('click',function(){var row=$('.dmb_empty_row').clone(!0);row.removeClass('dmb_empty_row').addClass('dmb_main').show();row.insertBefore($('.dmb_empty_row'));row.find('.dmb_firstname_of_member').focus();row.find('.dmb_color_picker_ready').removeClass('.dmb_color_picker_ready').addClass('.dmb_color_picker').wpColorPicker().css({'padding':'3px'});row.find('.dmb_handle_title').html(objectL10n.untitled);row.find('.dmb_description_of_member').hide();refreshRowCountRelatedUI();return!1});$('.dmb_remove_row_btn').click(function(e){$(this).closest('.dmb_main').remove();refreshRowCountRelatedUI();return!1});$('.dmb_handle').click(function(e){$(this).siblings('.dmb_inner').slideToggle(50);($(this).hasClass('closed'))?$(this).removeClass('closed'):$(this).addClass('closed');return!1});$('.dmb_collapse_rows').click(function(e){$('.dmb_handle').each(function(i,obj){if(!$(this).closest('.dmb_empty_row').length){if($(this).hasClass('closed')){}else{$(this).siblings('.dmb_inner').slideToggle(50);$(this).addClass('closed')}}});return!1});$('.dmb_expand_rows').click(function(e){$('.dmb_handle').each(function(i,obj){if($(this).hasClass('closed')){$(this).siblings('.dmb_inner').slideToggle(50);$(this).removeClass('closed')}});return!1});$('.dmb_move_row_down').click(function(e){if($(this).closest('.dmb_main').next().hasClass('dmb_main')){var movingRow=$(this).closest('.dmb_main').clone(!0);movingRow.insertAfter($(this).closest('.dmb_main').next());$(this).closest('.dmb_main').remove()}
12
  return!1});$('.dmb_move_row_up').click(function(e){if($(this).closest('.dmb_main').prev().hasClass('dmb_main')){var movingRow=$(this).closest('.dmb_main').clone(!0);movingRow.insertBefore($(this).closest('.dmb_main').prev());$(this).closest('.dmb_main').remove()}
13
  return!1});$('.dmb_clone_row').click(function(e){var clone=$(this).closest('.dmb_main').clone(!0);clone.insertAfter($(this).closest('.dmb_main'));clone.find('.dmb_handle_title').html(clone.find('.dmb_firstname_of_member').val()+' ('+objectL10n.copy+')');clone.find('.dmb_firstname_of_member').focus();updateHandleTitle(clone.find('.dmb_firstname_of_member'),!0);refreshRowCountRelatedUI();return!1});$('.dmb_main').not('.dmb_empty_row').each(function(i,obj){if($(this).find('.dmb_firstname_of_member').val()!=''){var handleTitle=$(this).find('.dmb_handle_title'),firstname=$(this).find('.dmb_firstname_of_member').val(),lastname=$(this).find('.dmb_lastname_of_member').val();handleTitle.html(firstname+' '+lastname)}});function updateHandleTitle(firstnameField,wasCloned){if(!wasCloned){wasCloned=!1}
14
  var firstnameField=firstnameField,lastname=firstnameField.closest('.dmb_main').find('.dmb_lastname_of_member').val()||'';handleTitle=firstnameField.closest('.dmb_main').find('.dmb_handle_title');cloneCopyText='';(wasCloned)?cloneCopyText=' copy':cloneCopyText='';(firstnameField.val()!='')?handleTitle.html(firstnameField.val()+' '+lastname+cloneCopyText):handleTitle.html(objectL10n.untitled+cloneCopyText)}
15
+ $('.dmb_firstname_of_member').on('keyup','.dmb_firstname_of_member',function(e){updateHandleTitle($(this))});$('body').on('keyup','.dmb_lastname_of_member',function(e){firstnameField=$(this).closest('.dmb_main').find('.dmb_firstname_of_member');updateHandleTitle(firstnameField)});$('.dmb_show_preview_team').click(function(){var settings={};var team={};var preview_html='';settings.columns=$("select[name='team_columns'] option:selected").val();settings.bio_alignment=$("select[name='team_bio_align'] option:selected").val();settings.piclink_beh=$("select[name='team_piclink_beh'] option:selected").val();settings.piclink_beh=='new'?team.plb='target="_blank"':team.plb='';settings.color=dmb_rgb2hex($('.dmb_color_of_team').find(".wp-color-result").css('backgroundColor'))||'#8dba09';team.memberCount=$('.dmb_main').not('.dmb_empty_row').size();preview_html+='<div class="tmm" style="margin-top: 100px;">';preview_html+='<div class="tmm_'+settings.columns+'_columns tmm_wrap '+team.ori_f+'">';$('.dmb_main').not('.dmb_empty_row').each(function(i,obj){var fields={};fields.firstname=$(this).find(".dmb_firstname_of_member").val();fields.lastname=$(this).find(".dmb_lastname_of_member").val();fields.job=$(this).find(".dmb_job_of_member").val();if($('#acf-fallback-bio').length){fields.bio=$.trim($(this).find('.dmb_description_of_member_fb').text())||''}else{fields.bio=$.trim($(this).find('.dmb_description_of_member').html())||''}
16
  fields.scl_type1=$(this).find(".dmb_scl_type1_of_member").find(":selected").val();fields.scl_title1=$(this).find(".dmb_scl_title1_of_member").val();fields.scl_url1=$(this).find(".dmb_scl_url1_of_member").val();fields.scl_type2=$(this).find(".dmb_scl_type2_of_member").find(":selected").val();fields.scl_title2=$(this).find(".dmb_scl_title2_of_member").val();fields.scl_url2=$(this).find(".dmb_scl_url2_of_member").val();fields.scl_type3=$(this).find(".dmb_scl_type3_of_member").find(":selected").val();fields.scl_title3=$(this).find(".dmb_scl_title3_of_member").val();fields.scl_url3=$(this).find(".dmb_scl_url3_of_member").val();fields.photoUrl=$(this).find(".dmb_img").attr('src');fields.photoLinkUrl=$(this).find(".dmb_photo_url_of_member").val();if(i%2==0){preview_html+='<span class="tmm_two_containers_tablet"></span>'}
17
  if(i%settings.columns==0){if(i>0){preview_html+='</div><span class="tmm_columns_containers_desktop"></span>'}
18
  preview_html+='<div class="tmm_container">'}
30
  if(!$('#acf-fallback-bio').length){$('.dmb_ue_update').click(function(){if($("#wp-dmb_editor-wrap").hasClass("tmce-active")){var dmb_ue_content=tinyMCE.activeEditor.getContent()}else{var dmb_ue_content=$('#dmb_editor').val()}(!dmb_ue_content)?lastEditedBio.hide():lastEditedBio.show();lastEditedBio.html($.parseHTML(dmb_ue_content));$('#dmb_unique_editor').fadeOut(100);if(tinymce.activeEditor!==null){tinymce.activeEditor.setContent('')}
31
  dmbGatherData(lastEditedBio);return!1})}
32
  if(!$('#acf-fallback-bio').length){$('.dmb_ue_cancel').click(function(){$('#dmb_unique_editor').fadeOut(100)})}
33
+ function debounce(func,wait,immediate){var timeout;return function(){var context=this,args=arguments;var later=function(){timeout=null;if(!immediate)func.apply(context,args)};var callNow=immediate&&!timeout;clearTimeout(timeout);timeout=setTimeout(later,wait);if(callNow)func.apply(context,args)}};$('body').on('paste keyup','#acf-fallback-bio',debounce(function(){$(this).siblings('.dmb_description_of_member_fb').text($(this).val());dmbGatherData($(this))},600))})})(jQuery);
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: spwebguy
3
  Tags: team, teams, meet the team, shortcode, responsive, members, staff, people
4
  Requires at least: 3.6
5
- Tested up to: 4.9
6
  Stable tag: trunk
7
  License: GPL2
8
  License URI: http://www.gnu.org/licenses/gpl.html
@@ -14,9 +14,7 @@ This plugin adds a “Teams” section to the admin panel which allows you to sh
14
 
15
  = No limitation for the Free version =
16
  The free version of the Team Members plugin is **not limited**.
17
-
18
- The [PRO version](https://wpdarko.com/items/team-members-pro/) adds new features: New picture on hover, member height equalizing, full-width pictures, additional info. box, picture filters, per-member color and two more social links for each member.
19
-
20
  = Available fields =
21
  * Firstname
22
  * Lastname
@@ -28,8 +26,21 @@ The [PRO version](https://wpdarko.com/items/team-members-pro/) adds new features
28
  * Number of members to show per line (1 to 5)
29
  * Color
30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
  = Usage =
32
- Go to [the plugin's documentation](https://wpdarko.com/docs/guide-team-members/) if you need more information on how to use this plugin.
33
 
34
  = Support =
35
  Find help in [our forums](https://wpdarko.com/ask-for-support/) for this plugin (we’ll answer you fast, promise).
@@ -43,14 +54,25 @@ Find help in [our forums](https://wpdarko.com/ask-for-support/) for this plugin
43
  4. Activate the plugin
44
 
45
  = Usage =
46
- Go to [the plugin's documentation](https://wpdarko.com/docs/guide-team-members/) for information on how to use it.
47
 
48
  == Frequently Asked Questions ==
49
 
50
  = No limitation for the Free version =
51
  The free version of the Team Members plugin is **not limited**.
52
 
53
- The [PRO version](https://wpdarko.com/items/team-members-pro/) adds new features: New picture on hover, member height equalizing, full-width pictures, additional info. box, picture filters, per-member color and two more social links for each member.
 
 
 
 
 
 
 
 
 
 
 
54
 
55
  = Ready for translation =
56
  * POT files included (/lang/)
@@ -58,7 +80,7 @@ The [PRO version](https://wpdarko.com/items/team-members-pro/) adds new features
58
  * Spanish translation included
59
 
60
  = Usage =
61
- Go to [the plugin's documentation](https://wpdarko.com/docs/guide-team-members/) if you need more information on how to use this plugin.
62
 
63
  = Support =
64
  Find help in [our forums](https://wpdarko.com/ask-for-support/) for this plugin (we’ll answer you fast, promise).
@@ -72,6 +94,9 @@ Find help in [our forums](https://wpdarko.com/ask-for-support/) for this plugin
72
  6. Finding the shortcode (admin view)
73
 
74
  == Changelog ==
 
 
 
75
  = 4.1.1 =
76
  * Fixes team edit issue for IE browsers.
77
 
2
  Contributors: spwebguy
3
  Tags: team, teams, meet the team, shortcode, responsive, members, staff, people
4
  Requires at least: 3.6
5
+ Tested up to: 5.3
6
  Stable tag: trunk
7
  License: GPL2
8
  License URI: http://www.gnu.org/licenses/gpl.html
14
 
15
  = No limitation for the Free version =
16
  The free version of the Team Members plugin is **not limited**.
17
+
 
 
18
  = Available fields =
19
  * Firstname
20
  * Lastname
26
  * Number of members to show per line (1 to 5)
27
  * Color
28
 
29
+ = PRO features =
30
+ * New picture on hover
31
+ * Member height equalizing
32
+ * Import/export members from one team to another
33
+ * Full-width pictures
34
+ * Hide members
35
+ * More info reveal box
36
+ * Picture filters
37
+ * Per-member color
38
+ * Two more social links per member
39
+
40
+ View [PRO version](https://wpdarko.com/items/team-members-pro/)
41
+
42
  = Usage =
43
+ Go to [the plugin's documentation](https://wpdarko.zendesk.com/hc/en-us/articles/206303627-Get-started-with-the-Team-Members-plugin) if you need more information on how to use this plugin.
44
 
45
  = Support =
46
  Find help in [our forums](https://wpdarko.com/ask-for-support/) for this plugin (we’ll answer you fast, promise).
54
  4. Activate the plugin
55
 
56
  = Usage =
57
+ Go to [the plugin's documentation](https://wpdarko.zendesk.com/hc/en-us/articles/206303627-Get-started-with-the-Team-Members-plugin) for information on how to use it.
58
 
59
  == Frequently Asked Questions ==
60
 
61
  = No limitation for the Free version =
62
  The free version of the Team Members plugin is **not limited**.
63
 
64
+ = PRO features =
65
+ * New picture on hover
66
+ * Member height equalizing
67
+ * Import/export members from one team to another
68
+ * Full-width pictures
69
+ * Hide members
70
+ * More info reveal box
71
+ * Picture filters
72
+ * Per-member color
73
+ * Two more social links per member
74
+
75
+ View [PRO version](https://wpdarko.com/items/team-members-pro/)
76
 
77
  = Ready for translation =
78
  * POT files included (/lang/)
80
  * Spanish translation included
81
 
82
  = Usage =
83
+ Go to [the plugin's documentation](https://wpdarko.zendesk.com/hc/en-us/articles/206303627-Get-started-with-the-Team-Members-plugin) if you need more information on how to use this plugin.
84
 
85
  = Support =
86
  Find help in [our forums](https://wpdarko.com/ask-for-support/) for this plugin (we’ll answer you fast, promise).
94
  6. Finding the shortcode (admin view)
95
 
96
  == Changelog ==
97
+ = 4.1.2 =
98
+ * Replaces deprecated jQuery methods.
99
+
100
  = 4.1.1 =
101
  * Fixes team edit issue for IE browsers.
102
 
tmm.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Team Members
5
  * Plugin URI: https://wpdarko.com/team-members
6
  * Description: A responsive, simple and clean way to display your team. Create new members, add their positions, bios, social links and copy-paste the shortcode into any post/page. Find help and information on our <a href="https://wpdarko.com/ask-for-support/">support site</a>. This free version is NOT limited and does not contain any ad. Check out the <a href='https://wpdarko.com/team-members'>PRO version</a> for more great features.
7
- * Version: 4.1.1
8
  * Author: WP Darko
9
  * Author URI: https://wpdarko.com
10
  * Text Domain: team-members
4
  * Plugin Name: Team Members
5
  * Plugin URI: https://wpdarko.com/team-members
6
  * Description: A responsive, simple and clean way to display your team. Create new members, add their positions, bios, social links and copy-paste the shortcode into any post/page. Find help and information on our <a href="https://wpdarko.com/ask-for-support/">support site</a>. This free version is NOT limited and does not contain any ad. Check out the <a href='https://wpdarko.com/team-members'>PRO version</a> for more great features.
7
+ * Version: 4.1.2
8
  * Author: WP Darko
9
  * Author URI: https://wpdarko.com
10
  * Text Domain: team-members