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:
parent
0b89c0d575
commit
e3d09b404d
@ -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 {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user