1
0
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:
Abel Coronado 2018-06-13 16:14:37 +02:00 committed by Tino Vázquez
parent c519168219
commit 139ec46628

View File

@ -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); };
});