if user submits outfits#new name form with no name, use the fallback job

This commit is contained in:
Emi Matchu 2014-04-16 11:02:44 -05:00
parent eda80a8dc7
commit b429c30d3b

View file

@ -236,6 +236,13 @@ $(function () {
el.text(text).show(); el.text(text).show();
} }
} }
$('#load-pet-to-wardrobe').submit(function(e) {
if (name_el.val() === "" && Preview.Job.current) {
e.preventDefault();
Preview.Job.current.visit();
}
});
}); });
function addDisqusCount() { function addDisqusCount() {