Ignore:
Timestamp:
Nov 6, 2007, 10:42:09 AM (14 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #778: Add expression to formula

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/views/formulas/edit_formula.jsp

    r3679 r3913  
    302302      var channels = frm.channels.value;
    303303      var restrictions = formulaType == '<%=Formula.Type.COLUMN_RESTRICTION.name()%>';
    304       Main.expressionBuilder('<%=ID%>', 'Expression', 'formula', 'expression', formulaType, rdt, channels, restrictions);
     304      Main.expressionBuilder('<%=ID%>', 'Expression', 'formula', 'expression', formulaType, rdt, channels, restrictions, null, 'setExpressionFromBuilder');
     305    }
     306 
     307    function setExpressionFromBuilder(form, textarea, value)
     308    {
     309      var frm = document.forms['formula'];
     310      frm[textarea].value = value;
     311      if (frm.expressions.length == 0)
     312      {
     313        addOnClick();
     314      }
     315      else
     316      {
     317        expressionOnBlur();
     318      }
    305319    }
    306320 
Note: See TracChangeset for help on using the changeset viewer.