1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-05 09:17:41 +03:00

M #-: fix status BJ and fix input to add numbers (#2774)

This commit is contained in:
Jorge Miguel Lobo Escalona 2023-10-11 18:23:18 +02:00 committed by GitHub
parent 0b89c0d575
commit e3d09b404d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View File

@ -40,10 +40,13 @@ define(function(require) {
return lastBackup === '0'? "Not started yet" : "Completed"
}
if(haveValues(outdatedVms) || haveValues(backinUpVms)){
if(haveValues(outdatedVms)){
return "Completed"
}
if(haveValues(backinUpVms)){
return "On Going"
}
}
return {

View File

@ -296,7 +296,12 @@ define(function (require) {
//input hour picker
schedule.find("#time_input",context).off("click").on("click",function(e){
e.stopPropagation();
}).wickedpicker(options_hour_picker);
}).wickedpicker(options_hour_picker).removeAttr("onkeypress").on('keypress', function(e) {
var key = String.fromCharCode(e.which);
if (!/[\d:]/.test(key) && e.which !== 8) {
e.preventDefault();
}
});
schedule.find("#relative_time", context).off("click").on("click", function (e) {
$("#schedule_type", context).prop("checked", false);