HomeHelpTrac

Changeset 15744 for trunk/templates


Ignore:
Timestamp:
12/09/11 21:11:46 (6 months ago)
Author:
Alexander Trofimov
Message:

Grid - custom URL params

Location:
trunk/templates/base
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/base/grid.html

    r15727 r15744  
    8282                text_search_input: '<bx_text_js:_sys_grid_search />', 
    8383                popup_options: __popup_options__, 
     84                query_append: __query_append__, 
    8485                columns: __columns__ 
    8586            }); 
  • trunk/templates/base/scripts/BxBaseGrid.php

    r15736 r15744  
    1919    protected $_oTemplate; 
    2020    protected $_aPopupOptions = false; 
     21    protected $_aQueryAppend = false; 
    2122 
    2223    public function __construct ($aOptions, $oTemplate) { 
     
    160161            $oParser = new Services_JSON(); 
    161162            $sPopupOptions = $oParser->encode($this->_aPopupOptions); 
     163        } 
     164 
     165        $sQueryAppend = '{}'; 
     166        if (!empty($this->_aQueryAppend) && is_array($this->_aQueryAppend)) { 
     167            require_once(BX_DIRECTORY_PATH_PLUGINS . 'Services_JSON.php'); 
     168            $oParser = new Services_JSON(); 
     169            $sQueryAppend = $oParser->encode($this->_aQueryAppend); 
    162170        } 
    163171 
     
    182190            'order_dir' => bx_js_string($sOrderDir, BX_JS_STR_APOS), 
    183191            'popup_options' => $sPopupOptions, 
     192            'query_append' => $sQueryAppend, 
    184193            'columns' => count($this->_aOptions['fields']), 
    185194            'bx_if:actions_bulk' => array ( 
Note: See TracChangeset for help on using the changeset viewer.