HomeHelpTrac

Changeset 15907 for trunk/templates


Ignore:
Timestamp:
01/23/12 17:53:24 (4 months ago)
Author:
Alexander Trofimov
Message:

Forms, Menus - some fixes

Location:
trunk/templates/base/scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/base/scripts/BxBaseFormView.php

    r15905 r15907  
    162162        $sCont = ''; 
    163163        foreach ($this->aInputs as $aInput) 
    164             if ($this->_isVisible($aInput))  
     164            if (!isset($aInput['visible_for_levels']) || $this->_isVisible($aInput))  
    165165                $sCont .= $this->genRow($aInput); 
    166166         
  • trunk/templates/base/scripts/BxBaseMenu.php

    r15901 r15907  
    5555        foreach ($this->_aObject['menu_items'] as $a) { 
    5656 
    57             if (!$a['active']) 
     57            if (isset($a['active']) && !$a['active']) 
    5858                continue; 
    5959 
    60             if (!$this->_isVisible($a)) 
     60            if (isset($a['visible_for_levels']) && !$this->_isVisible($a)) 
    6161                continue; 
    6262 
     
    6565 
    6666            $a['class_add'] = $this->_isSelected($a) ? 'bx-menu-tab-active' : ''; 
    67             $a['link'] = $this->_oPermalinks->permalink($a['link']); 
     67            $a['link'] = isset($a['link']) ? $this->_oPermalinks->permalink($a['link']) : 'javascript:void(0);'; 
    6868            $a['title'] = _t($a['title']);             
    6969 
Note: See TracChangeset for help on using the changeset viewer.