From 70c5997872af5236a0f8cc52e592dab636341b32 Mon Sep 17 00:00:00 2001 From: Kaleb Murphy Date: Fri, 1 May 2009 19:07:01 +0000 Subject: [PATCH] YUI editor in the edit panel for the Survey editor now drags with the panel and hides with the panel. --- www/extras/wobject/Survey/editsurvey/object.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/www/extras/wobject/Survey/editsurvey/object.js b/www/extras/wobject/Survey/editsurvey/object.js index 80bdf569d..42e1b0fa9 100644 --- a/www/extras/wobject/Survey/editsurvey/object.js +++ b/www/extras/wobject/Survey/editsurvey/object.js @@ -146,8 +146,12 @@ Survey.ObjectTemplate = (function(){ visible: false, buttons: btns }); - + dialog.callback = Survey.Comm.callback; + + dialog.hideEvent.subscribe(function(){Survey.ObjectTemplate.hideEditor();}); + dialog.dragEvent.subscribe(function(){Survey.ObjectTemplate.showEditor();}); + dialog.render(); resizeGotoExpression = new YAHOO.util.Resize('resize_gotoExpression_formId');