Updated front-end validation to work in FireFox
This commit is contained in:
parent
c65fa8ce37
commit
1d658867f7
1 changed files with 2 additions and 3 deletions
|
@ -629,9 +629,8 @@ function setAddShowEvents(form) {
|
||||||
// read the image data as though it were a data URI
|
// read the image data as though it were a data URI
|
||||||
reader.readAsDataURL(this.files[0]);
|
reader.readAsDataURL(this.files[0]);
|
||||||
} else {
|
} else {
|
||||||
// remove the element by replcaing it with a clone of itself
|
// remove the file element data
|
||||||
var el = $("#add_show_logo");
|
$(this).val('').replaceWith($(this).clone(true));
|
||||||
el.replaceWith(el = el.clone(true));
|
|
||||||
$("#show_logo_preview").hide();
|
$("#show_logo_preview").hide();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue