Changeset 2580


Ignore:
Timestamp:
04/19/10 08:46:39 (14 years ago)
Author:
amuller
Message:

Ticket #1036 - correcao indice de array, alem de aumentar a compactacao

Location:
trunk/phpgwapi
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpgwapi/inc/class.javascript.inc.php

    r2578 r2580  
    138138                                                                                { 
    139139                                                                                        $filePath=PHPGW_INCLUDE_ROOT.SEP.$app.SEP.'js'.SEP.$pkg.SEP.$file.'.js'; 
    140                                                                                         $script .= file_get_contents($filePath).";\n"; 
     140                                                                                        $script .= file_get_contents($filePath); 
    141141                                                                                } 
    142142                                                                        } 
     
    162162                                                                        $fp = fopen($filePath, 'w'); 
    163163                                                                        require_once('class.JavaScriptPacker.php'); 
    164                                                                         $packer = new JavaScriptPacker($script, 'Normal', true, false); 
     164                                                                        $packer = new JavaScriptPacker($script, 'High ASCII', true, true); 
    165165                                                                        $packed = $packer->pack(); 
    166166                                                                        fwrite($fp, $packed); 
  • trunk/phpgwapi/js/dftree/dftree.js

    r2563 r2580  
    6161                if (i.charAt(0) != '_') 
    6262                { 
    63                         eval('this.'+i+' = arrayProps[\''+i+'\'];'); 
     63                        eval('this.'+i+' = arrayProps["'+i+'"];'); 
    6464                } 
    6565        } 
     
    121121                if (i != 'id' && i.charAt(0) != '_') 
    122122                { 
    123                         eval('this.'+i+' = arrayProps[\''+i+'\'];'); 
     123                        eval('this.'+i+' = arrayProps["'+i+'"];'); 
    124124                } 
    125125        } 
     
    404404                if (i.charAt(0) != '_') 
    405405                { 
    406                         eval('this.'+i+' = arrayProps[\''+i+'\'];'); 
     406                        eval('this.'+i+' = arrayProps["'+i+'"];'); 
    407407                } 
    408408        } 
Note: See TracChangeset for help on using the changeset viewer.