Skip to content

Commit 523c0e2

Browse files
committed
fix misaligned repeating show fields
1 parent 0be6566 commit 523c0e2

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

js/schedule.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -291,16 +291,16 @@ OB.Schedule.addeditModeChange = function (where) {
291291
var val = $("#" + where + "_mode").val();
292292

293293
if (val == "once") {
294-
$("#" + where + "_addedit_x_data").hide();
295-
$("#" + where + "_addedit_stop").hide();
294+
$("#" + where + "_addedit_x_data").addClass('hidden');
295+
$("#" + where + "_addedit_stop").addClass('hidden');
296296

297297
return;
298298
}
299299

300-
$("#" + where + "_addedit_stop").show();
300+
$("#" + where + "_addedit_stop").removeClass('hidden');
301301

302-
if (val == "xweeks" || val == "xmonths" || val == "xdays") $("#" + where + "_addedit_x_data").show();
303-
else $("#" + where + "_addedit_x_data").hide();
302+
if (val == "xweeks" || val == "xmonths" || val == "xdays") $("#" + where + "_addedit_x_data").removeClass('hidden');
303+
else $("#" + where + "_addedit_x_data").addClass('hidden');
304304

305305
//T Weeks
306306
if (val == "xweeks") $("#" + where + "_addedit_x_data_interval").text(OB.t("Weeks"));

0 commit comments

Comments
 (0)