public/javascripts/inputex/js/widgets/DataTable.js
function(e) {

      if(!this.dialog) {
         this.renderDialog();
      }
		
		// Inserting new record
		this.insertNewRecord = true;
		
		this.dialog.whenFormAvailable({
			fn: function() {
				this.dialog.getForm().clear();
				this.dialog.show();
			},
			scope: this
		});
		
   }
function(e) {

      if(!this.dialog) {
         this.renderDialog();
      }
		
		// Inserting new record
		this.insertNewRecord = true;
		
		this.dialog.whenFormAvailable({
			fn: function() {
				this.dialog.getForm().clear();
				this.dialog.show();
			},
			scope: this
		});
		
   }
function ( e ) { if ( ! this . dialog ) { this . renderDialog ( ) ; } // Inserting new record this . insertNewRecord = true ; this . dialog . whenFormAvailable ( { fn : function ( ) { this . dialog . getForm ( ) . clear ( ) ; this . dialog . show ( ) ; } , scope : this } ) ; }
Insert button event handler
Insert button event handler