diff --git a/modules/sendtoafriend/sendtoafriend-extra.tpl b/modules/sendtoafriend/sendtoafriend-extra.tpl old mode 100644 new mode 100755 index 8c701642a..7437589fd --- a/modules/sendtoafriend/sendtoafriend-extra.tpl +++ b/modules/sendtoafriend/sendtoafriend-extra.tpl @@ -32,13 +32,15 @@ $('document').ready(function(){ $('#sendEmail').click(function(){ var datas = []; - $('#fancybox-content').find('input').each(function(index){ + $('#send_friend_form_content').find(':input').each(function(index){ var o = {}; o.key = $(this).attr('name'); o.value = $(this).val(); + if (o.value != '') datas.push(o); }); + if (datas.length >= 3) { $.ajax({ @@ -73,7 +75,7 @@ $('document').ready(function(){ -
{l s='Recipient' mod='sendtoafriend'} :