|
|
@@ -652,8 +652,9 @@ ${ dashboard.import_bindings() }
|
|
|
function widgetDraggedAdditionalHandler(widget) {
|
|
|
$("canvas").remove();
|
|
|
if (viewModel.currentlyDraggedWidget() && viewModel.currentlyDraggedWidget().id() == ""){
|
|
|
- viewModel.workflow.newNode(widget);
|
|
|
- showAddActionDemiModal(widget);
|
|
|
+ viewModel.workflow.newNode(widget, function() {
|
|
|
+ showAddActionDemiModal(widget);
|
|
|
+ });
|
|
|
}
|
|
|
else {
|
|
|
if (viewModel.currentlyDraggedOp() == "move"){
|
|
|
@@ -677,7 +678,7 @@ ${ dashboard.import_bindings() }
|
|
|
|
|
|
_el.css("position", "absolute");
|
|
|
_el.css({
|
|
|
- "top": (lastSeenPosition.top) + "px",
|
|
|
+ "top": lastSeenPosition.top + "px",
|
|
|
"left": lastSeenPosition.left + "px",
|
|
|
"width": 450
|
|
|
});
|
|
|
@@ -750,7 +751,7 @@ ${ dashboard.import_bindings() }
|
|
|
_el.parent().css("height", viewModel.isEditing() ? _el.height() : (_el.height() + 17) + "px");
|
|
|
_el.css("position", "absolute");
|
|
|
_el.css({
|
|
|
- "top": (lastSeenPosition.top) + "px",
|
|
|
+ "top": lastSeenPosition.top + "px",
|
|
|
"left": lastSeenPosition.left + "px",
|
|
|
"width": _width,
|
|
|
"marginBottom": "20px"
|