highlighting fixed…
This commit is contained in:
		
							parent
							
								
									d4392c8d56
								
							
						
					
					
						commit
						ee5fd18b64
					
				| 
						 | 
				
			
			@ -395,8 +395,21 @@ var orbitDesktop = function(dom){
 | 
			
		|||
              
 | 
			
		||||
            // })
 | 
			
		||||
          }
 | 
			
		||||
          $('*[content-type=menu] a').removeClass('thmc1 thmtxt active');
 | 
			
		||||
          dom.addClass('thmc1 thmtxt active');
 | 
			
		||||
          // $('*[content-type=menu] a').removeClass('thmc1 thmtxt active');
 | 
			
		||||
          // dom.addClass('thmc1 thmtxt active');
 | 
			
		||||
          o.highlight_sub_menu_item(dom);
 | 
			
		||||
    }
 | 
			
		||||
    this.highlight_sub_menu_item = function(no){
 | 
			
		||||
      $('*[content-type=menu] a').removeClass('thmc1 thmtxt active');
 | 
			
		||||
      var dom;
 | 
			
		||||
      if(typeof no == "number"){
 | 
			
		||||
        dom = $('*[content-type=menu] a').eq(no);
 | 
			
		||||
        dom.addClass('thmc1 thmtxt active');
 | 
			
		||||
      }else if(typeof no == "object"){
 | 
			
		||||
        dom = no;
 | 
			
		||||
        dom.addClass('thmc1 thmtxt active');
 | 
			
		||||
      }
 | 
			
		||||
      return dom;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
  this.initializeDesktop = function(target,url,cache){ //this is for initializing main desktops that are sections and tiles
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -222,10 +222,7 @@
 | 
			
		|||
</script>
 | 
			
		||||
 | 
			
		||||
<script>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
   var get_html = function(old_id,new_id){
 | 
			
		||||
    return ("<%= escape_javascript(add_attribute 'form_file', f, :writing_journal_files) %>").replace(old_id, new_id)
 | 
			
		||||
    return ("<%= escape_javascript(add_attribute 'form_file', f, :writing_journal_files) %>").replace(old_id, new_id);
 | 
			
		||||
   }
 | 
			
		||||
 | 
			
		||||
</script>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue