public/javascripts/inputex/js/fields/KeyValueField-beta.js
function(e, params) {
      var value = params[0];
      var f = this.nameIndex[value];
      var lastInput = this.inputs[this.inputs.length-1];
      var next = this.divEl.childNodes[inputEx.indexOf(lastInput.getEl(), this.divEl.childNodes)+1];
      lastInput.destroy();
      this.inputs.pop();
      var field = this.renderField(f);
      var fieldEl = field.getEl();
   	YAHOO.util.Dom.setStyle(fieldEl, 'float', 'left');
	   
   	this.divEl.insertBefore(fieldEl, next);
   }
function(e, params) {
      var value = params[0];
      var f = this.nameIndex[value];
      var lastInput = this.inputs[this.inputs.length-1];
      var next = this.divEl.childNodes[inputEx.indexOf(lastInput.getEl(), this.divEl.childNodes)+1];
      lastInput.destroy();
      this.inputs.pop();
      var field = this.renderField(f);
      var fieldEl = field.getEl();
   	YAHOO.util.Dom.setStyle(fieldEl, 'float', 'left');
	   
   	this.divEl.insertBefore(fieldEl, next);
   }
function ( e , params ) { var value = params [ 0 ] ; var f = this . nameIndex [ value ] ; var lastInput = this . inputs [ this . inputs . length - 1 ] ; var next = this . divEl . childNodes [ inputEx . indexOf ( lastInput . getEl ( ) , this . divEl . childNodes ) + 1 ] ; lastInput . destroy ( ) ; this . inputs . pop ( ) ; var field = this . renderField ( f ) ; var fieldEl = field . getEl ( ) ; YAHOO . util . Dom . setStyle ( fieldEl , 'float' , 'left' ) ; this . divEl . insertBefore ( fieldEl , next ) ; }
Rebuild the value field
Rebuild the value field