mirror of
https://github.com/friendica/friendica
synced 2024-12-23 07:20:15 +00:00
Merge pull request #13009 from MrPetovan/bug/13006-frio-admin-settings
[frio] Fix jS error that was preventing further script execution in theme settings
This commit is contained in:
commit
98595b6a2a
1 changed files with 13 additions and 11 deletions
|
@ -192,19 +192,21 @@
|
||||||
// Create colorpickers
|
// Create colorpickers
|
||||||
$("#frio_nav_bg, #frio_nav_icon_color, #frio_background_color, #frio_link_color, #frio_login_bg_color").colorpicker({format: 'hex', align: 'left'});
|
$("#frio_nav_bg, #frio_nav_icon_color, #frio_background_color, #frio_link_color, #frio_login_bg_color").colorpicker({format: 'hex', align: 'left'});
|
||||||
|
|
||||||
// show image options when user starts to type the address of the image
|
if ($("#id_frio_background_image").length) {
|
||||||
$("#id_frio_background_image").keyup(function(){
|
// show image options when user starts to type the address of the image
|
||||||
var elText = $(this).val();
|
$("#id_frio_background_image").keyup(function () {
|
||||||
if(elText.length !== 0) {
|
const elText = $(this).val();
|
||||||
$("#frio_bg_image_options").show();
|
if (elText.length !== 0) {
|
||||||
} else {
|
$("#frio_bg_image_options").show();
|
||||||
$("#frio_bg_image_options").hide();
|
} else {
|
||||||
}
|
$("#frio_bg_image_options").hide();
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// show the image options if there is already an image
|
// show the image options if there is already an image
|
||||||
if($("#id_frio_background_image").val().length != 0) {
|
if ($("#id_frio_background_image").val().length != 0) {
|
||||||
$("#frio_bg_image_options").show();
|
$("#frio_bg_image_options").show();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue