From 3f43aafdd6d03bb9dea163b116d59df55641af6d Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 3 Oct 2010 16:19:00 -0400 Subject: [PATCH] Add the PathControl as a child component of the dialog in performMove_(). --- web_frontend/actor.js | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/web_frontend/actor.js b/web_frontend/actor.js index d4b27c1..cf62cea 100644 --- a/web_frontend/actor.js +++ b/web_frontend/actor.js @@ -169,26 +169,9 @@ armadillo.Actor.prototype.performMove_ = function() { var dialog = this.createActionDialog_(); dialog.setTitle('Move File'); - var container = dialog.getContentElement(); - var editor = new armadillo.PathControl(this.file_.getFullPath(), false); - editor.render(container); - -/* - goog.dom.appendChild(container, - goog.dom.createDom('p', null, - 'Enter a new, absolute path for this file.')); - var field = goog.dom.createElement('input'); - field.type = 'text'; - field.value = this.file_.getFullPath(); - goog.dom.appendChild(container, field) - // TODO: Suck less. - goog.dom.appendChild(container, - goog.dom.createDom('p', 'smallfont', - '(Please pardon this interface. Armadillo is a work-in-progress.)')); - - field.focus(); -*/ + dialog.addChild(editor, true); + dialog.setVisible(true); }; -- 2.43.5