Browse Source

Resize checkboxes only when they are visible

rfm69
Maxim Prokhorov 6 years ago
parent
commit
5dafb02cbf
1 changed files with 8 additions and 4 deletions
  1. +8
    -4
      code/html/custom.js

+ 8
- 4
code/html/custom.js View File

@ -559,9 +559,9 @@ function toggleMenu() {
function showPanel() { function showPanel() {
$(".panel").hide(); $(".panel").hide();
$("#" + $(this).attr("data")).show();
if ($("#layout").hasClass("active")) { toggleMenu(); } if ($("#layout").hasClass("active")) { toggleMenu(); }
$("input[type='checkbox']").
$("#" + $(this).attr("data")).show().
find("input[type='checkbox']").
iphoneStyle("calculateDimensions"). iphoneStyle("calculateDimensions").
iphoneStyle("refresh"); iphoneStyle("refresh");
} }
@ -674,9 +674,13 @@ function addSchedule(event) {
}); });
$(line).find(".button-del-schedule").on("click", delSchedule); $(line).find(".button-del-schedule").on("click", delSchedule);
$(line).find(".button-more-schedule").on("click", moreSchedule); $(line).find(".button-more-schedule").on("click", moreSchedule);
var ena = $(line).find(":checkbox");
ena.prop("checked", false).iphoneStyle("refresh");
line.appendTo("#schedules"); line.appendTo("#schedules");
$(line).find("input[type='checkbox']").
prop("checked", false).
iphoneStyle("calculateDimensions").
iphoneStyle("refresh");
return line; return line;
} }


Loading…
Cancel
Save