mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-16 22:50:10 +03:00
Sched actions empty attr fixed (#2178)
This commit is contained in:
parent
c519168219
commit
139ec46628
@ -162,8 +162,10 @@ define(function (require) {
|
||||
var first = $(this).children("td")[0];
|
||||
if (!$("select", first).html()) {
|
||||
var actionJSON = {};
|
||||
actionJSON = JSON.parse($(this).attr("data"));
|
||||
actionJSON.ID = index;
|
||||
if ($(this).attr("data")){
|
||||
actionJSON = JSON.parse($(this).attr("data"));
|
||||
actionJSON.ID = index;
|
||||
}
|
||||
}
|
||||
if (!$.isEmptyObject(actionJSON)) { actionsJSON.push(actionJSON); };
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user