[frio] Fix jS error that was preventing further script execution in theme settings
- $("#id_frio_background_image").val() was undefined when showing accents
This commit is contained in:
parent
7f6d6c9521
commit
1caea496c4
|
@ -192,9 +192,10 @@
|
|||
// Create colorpickers
|
||||
$("#frio_nav_bg, #frio_nav_icon_color, #frio_background_color, #frio_link_color, #frio_login_bg_color").colorpicker({format: 'hex', align: 'left'});
|
||||
|
||||
if ($("#id_frio_background_image").length) {
|
||||
// show image options when user starts to type the address of the image
|
||||
$("#id_frio_background_image").keyup(function () {
|
||||
var elText = $(this).val();
|
||||
const elText = $(this).val();
|
||||
if (elText.length !== 0) {
|
||||
$("#frio_bg_image_options").show();
|
||||
} else {
|
||||
|
@ -206,6 +207,7 @@
|
|||
if ($("#id_frio_background_image").val().length != 0) {
|
||||
$("#frio_bg_image_options").show();
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in a new issue