Changeset 57283

Show
Ignore:
Timestamp:
02/07/08 17:22:32 (2 months ago)
Author:
sminnee
Message:

Fix bug in GenericDataAdmin? export
Fixed resizing of GDA search results
Allow for multiple GDA search buttons

Location:
modules/cms/branches/2.2.2-asfonz
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • modules/cms/branches/2.2.2-asfonz/code/GenericDataAdmin.php

    r50729 r57283  
    147147        // legacy 
    148148        function ExportForm() { 
    149                 return $form = new Form( 
     149                $form = new Form( 
    150150                        $this, 
    151151                        "ExportForm", 
    152152                        new FieldSet( 
    153                                 new HiddenField("csvIDs","csvIDs",$_REQUEST[csvIDs]) 
     153                                new HiddenField("csvIDs","csvIDs",isset($_REQUEST['csvIDs']) ? $_REQUEST['csvIDs'] : null) 
    154154                        ), 
    155155                        $this->result_actions 
    156156                ); 
     157                $form->disableSecurityToken(); 
     158                return $form; 
    157159        } 
    158160 
     
    445447 
    446448                $fileData = ""; 
    447                 $fileData .= "\"" . implode("\";\"",$csv_columns) . "\""; 
     449                $fileData .= "\"" . implode("\",\"",$csv_columns) . "\""; 
    448450                $fileData .= "\n"; 
    449451 
  • modules/cms/branches/2.2.2-asfonz/javascript/GenericDataAdmin_left.js

    r57189 r57283  
    1414                        }, 
    1515 
    16                         '#Form_SearchForm_action_getResults': { 
    17                                 onclick: this.filterOnChange.bind(this) 
     16                        '#Form_SearchForm input.action': { 
     17                                onclick: this.filterOnChange 
    1818                        }, 
    1919                        /** 
     
    108108                Ajax.SubmitForm( 
    109109                        "Form_SearchForm",  
    110                         "action_getResults",  
     110                        this.name,  
    111111                        { 
    112112                                postBody : 'ajax=1', 
    113                                 onSuccess : this.updateResult.bind(this), 
     113                                onSuccess : $('LeftPane').updateResult.bind(this), 
    114114                                onFailure : function(response) { 
    115115                                                errorMessage('Error encountered during search', response); 
     
    133133                        Behaviour.apply( $('ResultTable_holder') ); 
    134134                } 
     135 
     136                if($('ResultTable_holder')) fitToParent('ResultTable_holder',12); 
    135137        }, 
    136138