@evert
I managed to remove everything related to recommend to a friend and the report spam still works nicely:
This is what I did:
- in functions.js, I've removed lines 64-88
Code:SendToFriend: {
showHide: function()
{
$("#send-to-friend").toggle();
},
sendMsg: function()
{
$("#frm-send-to-friend").ajaxForm(function(responseText) {
if (responseText == "0")
{
var msg = Jobber.I18n.js.send_to_friend_unsuccessful;
$("#send-to-friend-response").css({ color: "red" });
}
else
{
var msg = Jobber.I18n.js.send_to_friend_successful;
$("#frm-send-to-friend").clearForm();
$("#send-to-friend-response").css({ color: "green" });
}
$("#send-to-friend-response").html(msg);
});
}
},
- in job.tpl, I've removed line 12
Code:<a href="#" onclick="Jobber.SendToFriend.showHide(); return false;" title="{$translations.recommend.title}">{$translations.recommend.title}</a>
- also in job.tpl, I've removed lines 41-48
Code:{literal}
<script type="text/javascript">
$(document).ready(function()
{
Jobber.SendToFriend.sendMsg();
});
</script>
{/literal}
I refreshed a job page and reported the job as spam and it worked nicely.
PS: I gave a more detailed response because I don't know if the line numbers match 