Currently I'm working on a local copy of site which uses multi site feature. And there's a strange thing with jQuery script. On main site it works completely correct, but on subdomain the part of this script doesn't work.
For example:
demo.example.com/wp-admin/post-new.php?post_type=incsub_event
This works great, but this doesn't work:
example.com/wp-admin/post-new.php?post_type=incsub_event
Here's the function which doesn't work:
$("#eab-eab-start_recurrence-button").click(toggle_recurrence_settings);
function toggle_recurrence_settings () {
var text = $("#eab-eab-start_recurrence-button").val();
var alter = $("#eab-eab-start_recurrence-button").attr("data-eab-alter_label");
$("#eab-eab-start_recurrence-button").val(alter);
$("#eab-eab-start_recurrence-button").attr("data-eab-alter_label", text);
if (!$("#eab_event-recurring_event").is(":visible")) show_event_recurrence();
else hide_event_recurrence();
return false;
}
What could be the reason of such strange behavior?