STMA.CatItems = {
    ref: null,
    defOrder: 'ASC',
    load: function() {
        this.by = STMA.Forms.getV('OrderBy');
        this.order = STMA.Forms.getV('OrderDir');
        this.page = STMA.Forms.getV('Page');
        this.onlyAct = STMA.Forms.getV('OnlyAct');
        
    },
    init: function(i) {
        this.ref = $g(i);
    },
    update: function(v,c) {
        $g('formInput_'+c).value = v;
        if (c != 'Page') {
            $g('formInput_Page').value = 1;    
        }
        this.load();
        STMA.AJAX.init('category.items', {node: this.ref.id}, 'refId='+STMA.Core.refId+';orderBy='+this.by+';orderDir='+this.order+';page='+this.page+';onlyAct='+this.onlyAct);
    }
    
}
