From 330ca16ac038bd38feec93b3494f6b067bd1a961 Mon Sep 17 00:00:00 2001 From: Harutyun Amirjanyan Date: Mon, 7 Sep 2015 13:52:37 +0400 Subject: [PATCH] Revert "Revert "[Trivial] fix sdk issues"" --- package.json | 4 ++-- plugins/c9.ide.ui/forms.js | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 43a3f8b1..58f4382d 100644 --- a/package.json +++ b/package.json @@ -102,8 +102,8 @@ "c9.ide.recentfiles": "#7c099abf40", "c9.ide.remote": "#301d2ab519", "c9.ide.processlist": "#bc11818bb5", - "c9.ide.run": "#cf9345a012", - "c9.ide.run.build": "#26fa628677", + "c9.ide.run": "#c53178c339", + "c9.ide.run.build": "#0598fff697", "c9.ide.run.debug.xdebug": "#61dcbd0180", "c9.ide.save": "#326087f5a2", "c9.ide.scm": "#f3847917b8", diff --git a/plugins/c9.ide.ui/forms.js b/plugins/c9.ide.ui/forms.js index 5b57dde9..ba36edb7 100644 --- a/plugins/c9.ide.ui/forms.js +++ b/plugins/c9.ide.ui/forms.js @@ -477,8 +477,12 @@ define(function(require, exports, module) { container.parentNode = htmlNode; htmlNode = htmlNode.$int; } - - htmlNode.insertBefore(container.$ext, beforeNode || null); + // if we have apf node, make sure apf child-parent links do not get broken + if (htmlNode.host && container.host) { + htmlNode.host.insertBefore(container.host, beforeNode && beforeNode.host); + } else { + htmlNode.insertBefore(container.$ext, beforeNode || null); + } show(); }