1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-29 18:50:08 +03:00

B #6260: Fix select right days of week (#2736)

(cherry picked from commit eafea04fa66d327ed369e949e55608c67291b323)
This commit is contained in:
Jorge Miguel Lobo Escalona 2023-09-18 16:03:08 +02:00 committed by Tino Vázquez
parent 6a97edf875
commit 0645467eb1

View File

@ -583,7 +583,11 @@ define(function (require) {
var dataDays = dataJSON.DAYS.split(",");
dataDays.forEach(function(dataValue){
if(days[dataValue]){
$(days[dataValue]).prop("checked", true);
if(dataValue > 0){
$(days[dataValue - 1]).prop("checked", true);
} else if (dataValue == 0){
$(days[6]).prop("checked", true);
}
}
});
}