|<\/div>/g, '\n');
eval.call(null, jsCode);
} else {
var customStyles = '';
if (widget.isHtmlWidget === true) {
customStyles += ' widget-type-htmldiv';
}
var $content = $('
');
$content.find('[data-skip-fix-widget-height]').css('height', '100%').parent().css('height', '100%');
var gridWidget = grid.addWidget({
x: widget.x,
y: widget.y,
w: $.cdh.helper.percentageToWidth(widget.width),
h: widget.height,
content: $content.html()
});
}
});
if ("" == "True") {
var gridWidget = grid.addWidget({
x: 0,
y: 0,
w: 12,
h: 0,
content: "
"
});
var parentDiv = gridWidget.closest('.grid-stack-item');
$(parentDiv).css({
'top': '-39px'
});
}
// remove gridstack absolute position and fixed height if there is one widget on the page
$.cdh.helper.removeGridstackFixedHeight(widgets.length);
$("#preSpinner").fadeOut(200, function() { $(this).remove(); });
})