public/javascripts/WireIt/build/wireit-inputex-editor-grouping.js
function(module) {
	try {
		var div = WireIt.cn('div', {className: "WiringEditor-module"});
		
		if(module.description) {
			div.title = module.description;
		}
		
      if(module.container.icon) {
         div.appendChild( WireIt.cn('img',{src: module.container.icon}) );
      }
      div.appendChild( WireIt.cn('span', null, null, module.name) );

      var ddProxy = new WireIt.ModuleProxy(div, this);
      ddProxy._module = module;

		// Get the category element in the accordion or create a new one
		var category = module.category || "main";
		var el = Dom.get("module-category-"+category);
		if( !el ) {
			this.modulesAccordionView.addPanel({
				label: category,
				content: "<div id='module-category-"+category+"'></div>"
			});
			this.modulesAccordionView.openPanel(this.modulesAccordionView._panels.length-1);
			el = Dom.get("module-category-"+category);
		}
		
		el.appendChild(div);
	}catch(ex){ console.log(ex);}
 	}
function(module) {
	try {
		var div = WireIt.cn('div', {className: "WiringEditor-module"});
		
		if(module.description) {
			div.title = module.description;
		}
		
      if(module.container.icon) {
         div.appendChild( WireIt.cn('img',{src: module.container.icon}) );
      }
      div.appendChild( WireIt.cn('span', null, null, module.name) );

      var ddProxy = new WireIt.ModuleProxy(div, this);
      ddProxy._module = module;

		// Get the category element in the accordion or create a new one
		var category = module.category || "main";
		var el = Dom.get("module-category-"+category);
		if( !el ) {
			this.modulesAccordionView.addPanel({
				label: category,
				content: "<div id='module-category-"+category+"'></div>"
			});
			this.modulesAccordionView.openPanel(this.modulesAccordionView._panels.length-1);
			el = Dom.get("module-category-"+category);
		}
		
		el.appendChild(div);
	}catch(ex){ console.log(ex);}
 	}
function ( module ) { try { var div = WireIt . cn ( 'div' , { className : "WiringEditor-module" } ) ; if ( module . description ) { div . title = module . description ; } if ( module . container . icon ) { div . appendChild ( WireIt . cn ( 'img' , { src : module . container . icon } ) ) ; } div . appendChild ( WireIt . cn ( 'span' , null , null , module . name ) ) ; var ddProxy = new WireIt . ModuleProxy ( div , this ) ; ddProxy . _module = module ; // Get the category element in the accordion or create a new one var category = module . category || "main" ; var el = Dom . get ( "module-category-" + category ) ; if ( ! el ) { this . modulesAccordionView . addPanel ( { label : category , content : "<div id='module-category-" + category + "'></div>" } ) ; this . modulesAccordionView . openPanel ( this . modulesAccordionView . _panels . length - 1 ) ; el = Dom . get ( "module-category-" + category ) ; } el . appendChild ( div ) ; } catch ( ex ) { console . log ( ex ) ; } }
Add a module definition to the left list
Add a module definition to the left list