Listen - DevTeam - I feel bad for you, I really do. Clearly your heart is in the right place but it's time to admit you're out of your depth and just roll back the changes and let professionals take over.
I've been working in software for 20+ years and you obviously have a
Big Ball of Mud on your hands. I've been poking around in your front end source and it's eye-bleedingly bad so I can only imagine what your back end looks like..
Code:
var k = $(':input[name="skip_verification"]'); k.parents(".help").toggleClass("hidden", k.is(":checked") || n.val() != "");
b.find(".choose-between-tour").each(function(x, y) {
var v = $("#cp-tour")
, w = v.find(':input[name="tour[id]"]');
if (w.val() && w.data("value") !== w.val()) {
$.getJSON("/ajax/modal/getEntity", {
entity: "tour",
id: w.val()
}, function(z) {
$(y).addClass("chose");
w.data("value", w.val());
v.find("span").addClass("hidden");
v.find(".chosen .stages").html("");
$.each(z.entity.strings.stages, function(B, A) {
v.find(".chosen .stages").append('<div class="stage">' + A + "</div>")
}
)
}
)
} else {
w.data("value", null );
v.find(".stage").remove();
v.find("span").removeClass("hidden");
$(y).removeClass("chose")
}
}
Seriously? Direct DOM manipulation, magic strings and ajax calls in 2015? I know you're only a small site but still - you must realise how brittle code like this is, make one tiny change to your DOM and all your selectors above fall apart.......
I know this post will be deleted within minutes to save your blushes but do try to take on board some of what I've said.