public/javascripts/webhookit/editor/wiring_editor.js
function() {
		
	    var value = this.getValue();
	    if(value.name === "") {
	       this.alert("Please choose a name");
	       return;
	    }

		this.tempSavedWiring = {name: value.name, working: value.working, language: this.options.languageName };

	    this.adapter.saveWiring(this.tempSavedWiring, {
	       success: this.saveModuleSuccess,
	       failure: this.saveModuleFailure,
	       scope: this
	    });
	
	 }
function() {
		
	    var value = this.getValue();
	    if(value.name === "") {
	       this.alert("Please choose a name");
	       return;
	    }

		this.tempSavedWiring = {name: value.name, working: value.working, language: this.options.languageName };

	    this.adapter.saveWiring(this.tempSavedWiring, {
	       success: this.saveModuleSuccess,
	       failure: this.saveModuleFailure,
	       scope: this
	    });
	
	 }
function ( ) { var value = this . getValue ( ) ; if ( value . name === "" ) { this . alert ( "Please choose a name" ) ; return ; } this . tempSavedWiring = { name : value . name , working : value . working , language : this . options . languageName } ; this . adapter . saveWiring ( this . tempSavedWiring , { success : this . saveModuleSuccess , failure : this . saveModuleFailure , scope : this } ) ; }
save the current module
@method saveModule
save the current module