| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -21,14 +21,14 @@ qcms.menu.Common = function (){
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            if($(`${_parentId} #${_domId}`).length){
 | 
					 | 
					 | 
					 | 
					            if($(`${_parentId} #${_domId}`).length){
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                $(`${_parentId} #${_domId}`).remove()
 | 
					 | 
					 | 
					 | 
					                $(`${_parentId} #${_domId}`).remove()
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            }
 | 
					 | 
					 | 
					 | 
					            }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            var _found = qcms.html.hasNode ($(`${_parentId}`),$(_domId))
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            if (_found == 0){
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                $(`${_parentId}`).children().slideUp('fast',()=>{
 | 
					 | 
					 | 
					 | 
					                $(`${_parentId}`).children().slideUp('fast',()=>{
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                    $(`${_parentId}`).append(_dom)
 | 
					 | 
					 | 
					 | 
					                    $(`${_parentId}`).append(_dom)
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                    this._finalize(`${_parentId} #${_domId}`)
 | 
					 | 
					 | 
					 | 
					                    this._finalize(`${_parentId} #${_domId}`)
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                //
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                // we should finalize the scripts
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                    
 | 
					 | 
					 | 
					 | 
					                    
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                })
 | 
					 | 
					 | 
					 | 
					                })
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            
 | 
					 | 
					 | 
					 | 
					            
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        })
 | 
					 | 
					 | 
					 | 
					        })
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -72,7 +72,6 @@ qcms.menu.Basic = function (_layout,_outputId,_domId){
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            $(_div).on('click', function (){
 | 
					 | 
					 | 
					 | 
					            $(_div).on('click', function (){
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                //
 | 
					 | 
					 | 
					 | 
					                //
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                // how do we process this ...
 | 
					 | 
					 | 
					 | 
					                // how do we process this ...
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                console.log(this.data)
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                if (this.data.type == 'redirect') {
 | 
					 | 
					 | 
					 | 
					                if (this.data.type == 'redirect') {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                    window.open(this.data.url,_me._format(this.data.text))
 | 
					 | 
					 | 
					 | 
					                    window.open(this.data.url,_me._format(this.data.text))
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                }else if (this.data.type == 'dialog'){
 | 
					 | 
					 | 
					 | 
					                }else if (this.data.type == 'dialog'){
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -173,9 +172,8 @@ qcms.menu.Tabs = function (_layout,_outputId,_domId){
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        // var _parentId = this._parentId
 | 
					 | 
					 | 
					 | 
					        // var _parentId = this._parentId
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        var _me = this ;
 | 
					 | 
					 | 
					 | 
					        var _me = this ;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        $(_label).on('click',function (){
 | 
					 | 
					 | 
					 | 
					        $(_label).on('click',function (){
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            alert('....')
 | 
					 | 
					 | 
					 | 
					            
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            // _me._open(this.data.id,this.data.uri,_me._parentId)
 | 
					 | 
					 | 
					 | 
					            // _me._open(this.data.id,this.data.uri,_me._parentId)
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            console.log([_me._format(this.data.text),this.data.uri,_parentId])
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            _me._open(_me._format(this.data.text),this.data.uri,_parentId)
 | 
					 | 
					 | 
					 | 
					            _me._open(_me._format(this.data.text),this.data.uri,_parentId)
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        })
 | 
					 | 
					 | 
					 | 
					        })
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        
 | 
					 | 
					 | 
					 | 
					        
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -187,7 +185,6 @@ qcms.menu.Tabs = function (_layout,_outputId,_domId){
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        // Object.keys(_layout.menu).
 | 
					 | 
					 | 
					 | 
					        // Object.keys(_layout.menu).
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    _names.forEach(function(_text){
 | 
					 | 
					 | 
					 | 
					    _names.forEach(function(_text){
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            _item = _layout.menu[_text]
 | 
					 | 
					 | 
					 | 
					            _item = _layout.menu[_text]
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        //    console.log([_item])
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            _tabItem = this._build(_text,_item)
 | 
					 | 
					 | 
					 | 
					            _tabItem = this._build(_text,_item)
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            
 | 
					 | 
					 | 
					 | 
					            
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            $(tabs).append(_tabItem)
 | 
					 | 
					 | 
					 | 
					            $(tabs).append(_tabItem)
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
 
 |