Survey Expression Engine validation++

Survey Expression Engine now detects invalid variable names passed to value(), score(), etc..
Also now detects situations where you have jump targets/expressions defined at multiple levels - thus causing precedence rules to kick in (normally this indicates a mistake)
Fixed Survey edit page bug where TextEditor would not move after gotoExpression textarea resize caused items to move
This commit is contained in:
Patrick Donelan 2009-05-10 07:45:14 +00:00
parent 02bf1db238
commit 5d6b4093be
5 changed files with 100 additions and 42 deletions

View file

@ -18,9 +18,7 @@ Survey.ObjectTemplate = (function(){
editor.get('element').value = YAHOO.util.Dom.get('texteditortarget').value;
editor.setEditorHTML(YAHOO.util.Dom.get('texteditortarget').value);
YAHOO.util.Dom.setStyle("editor_container","visibility","visible");
var xy = YAHOO.util.Dom.getXY(YAHOO.util.Dom.get("texteditortarget").id);
YAHOO.util.Dom.setXY("editor_container",xy);
YAHOO.util.Dom.setXY("editor_container",YAHOO.util.Dom.getXY(YAHOO.util.Dom.get("texteditortarget").id));
},
initObjectEditor: function() {
@ -158,6 +156,9 @@ Survey.ObjectTemplate = (function(){
resizeGotoExpression.on('resize', function(ev) {
YAHOO.util.Dom.setStyle('gotoExpression_formId', 'width', (ev.width - 6) + "px");
YAHOO.util.Dom.setStyle('gotoExpression_formId', 'height', (ev.height - 6) + "px");
// Resizing the gotoExpression box can cause the texteditor to move, so update its position
YAHOO.util.Dom.setXY("editor_container",YAHOO.util.Dom.getXY(YAHOO.util.Dom.get("texteditortarget").id));
});
// build the goto auto-complete widget

View file

@ -134,6 +134,9 @@ li.answer {
margin:5px;
padding:10px;
}
.warning {
padding: 5px;
}
#sections-panel .bd {
overflow: auto;
background-color:#fff;