I will not share options that are not being used.
This commit is contained in:
parent
1c33c20940
commit
a8cc4b3362
1 changed files with 29 additions and 29 deletions
|
@ -60,20 +60,20 @@
|
||||||
if ($("#id_frio_background_image").length) {
|
if ($("#id_frio_background_image").length) {
|
||||||
theme.background_image = $("#id_frio_background_image").val();
|
theme.background_image = $("#id_frio_background_image").val();
|
||||||
|
|
||||||
var elText = theme.background_image;
|
if (theme.background_image.length > 0) {
|
||||||
|
if ($("#id_frio_bg_image_option_stretch").is(":checked") == true) {
|
||||||
if ($("#id_frio_bg_image_option_stretch").is(":checked") == true) {
|
theme.background_image_option = "stretch";
|
||||||
theme.background_image_option = "stretch";
|
}
|
||||||
}
|
if ($("#id_frio_bg_image_option_cover").is(":checked") == true) {
|
||||||
if ($("#id_frio_bg_image_option_cover").is(":checked") == true) {
|
theme.background_image_option = "cover";
|
||||||
theme.background_image_option = "cover";
|
}
|
||||||
}
|
if ($("#id_frio_bg_image_option_contain").is(":checked") == true) {
|
||||||
if ($("#id_frio_bg_image_option_contain").is(":checked") == true) {
|
theme.background_image_option = "contain";
|
||||||
theme.background_image_option = "contain";
|
}
|
||||||
}
|
if ($("#id_frio_bg_image_option_repeat").is(":checked") == true) {
|
||||||
if ($("#id_frio_bg_image_option_repeat").is(":checked") == true) {
|
theme.background_image_option = "repeat";
|
||||||
theme.background_image_option = "repeat";
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($("#frio_contentbg_transp").length) {
|
if ($("#frio_contentbg_transp").length) {
|
||||||
|
@ -121,23 +121,23 @@
|
||||||
var elText = theme.background_image;
|
var elText = theme.background_image;
|
||||||
if(elText.length !== 0) {
|
if(elText.length !== 0) {
|
||||||
$("#frio_bg_image_options").show();
|
$("#frio_bg_image_options").show();
|
||||||
} else {
|
} else {
|
||||||
$("#frio_bg_image_options").hide();
|
$("#frio_bg_image_options").hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (theme.background_image_option) {
|
switch (theme.background_image_option) {
|
||||||
case 'stretch':
|
case 'stretch':
|
||||||
$("#id_frio_bg_image_option_stretch").prop("checked", true);
|
$("#id_frio_bg_image_option_stretch").prop("checked", true);
|
||||||
break;
|
break;
|
||||||
case 'cover':
|
case 'cover':
|
||||||
$("#id_frio_bg_image_option_cover").prop("checked", true);
|
$("#id_frio_bg_image_option_cover").prop("checked", true);
|
||||||
break;
|
break;
|
||||||
case 'contain':
|
case 'contain':
|
||||||
$("#id_frio_bg_image_option_contain").prop("checked", true);
|
$("#id_frio_bg_image_option_contain").prop("checked", true);
|
||||||
break;
|
break;
|
||||||
case 'repeat':
|
case 'repeat':
|
||||||
$("#id_frio_bg_image_option_repeat").prop("checked", true);
|
$("#id_frio_bg_image_option_repeat").prop("checked", true);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue