Updated front-end validation to work in FireFox

This commit is contained in:
Duncan Sommerville 2014-09-18 17:11:56 -04:00
parent c65fa8ce37
commit 1d658867f7
1 changed files with 2 additions and 3 deletions

View File

@ -629,9 +629,8 @@ function setAddShowEvents(form) {
// read the image data as though it were a data URI
reader.readAsDataURL(this.files[0]);
} else {
// remove the element by replcaing it with a clone of itself
var el = $("#add_show_logo");
el.replaceWith(el = el.clone(true));
// remove the file element data
$(this).val('').replaceWith($(this).clone(true));
$("#show_logo_preview").hide();
}
} else {