Ignore:
Timestamp:
11/05/12 18:26:34 (12 years ago)
Author:
vmipsl
Message:

print ok pour mozilla & chrome

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ether_statistics/web/project/statistics-script.jsp

    r661 r663  
    209209    { 
    210210        var printContent = new PrintContent(); 
     211        printContent.addContent( $( "#title" ).clone() ); 
     212        printContent.addContent( this.leftTopSlide.getDivContainer().clone().animate( {'marginLeft' : "+=80px"} ) ); 
     213        printContent.addContent( this.leftMiddleSlide.getDivContainer().clone().animate( {'marginLeft' : "+=80px"} ) ); 
     214        printContent.addContent( this.leftBottomSlide.getDivContainer().clone().animate( {'marginLeft' : "+=80px"} ) ); 
     215        printContent.addContent( this.middleSlide.getDivContainer().clone().animate( {'marginLeft' : "+=120px"} ) ); 
    211216        printContent.displayPrintPreview(); 
    212  
    213 //        $( "#containerMiddle" ).printPreview(); 
    214 //        $( 'a.print-preview' ).printPreview(); 
    215 //        $("#containerMiddle").jqprint(); 
    216  
    217 //        var printContent =$( "#containerMiddle" ); 
    218 //        var windowUrl = 'about:blank'; 
    219 //        var windowName = 'Print'; 
    220 //        var printWindow = window.open( windowUrl, windowName, 'left=50000,top=50000,width=0,height=0' ); 
    221 //        printWindow.document.write( "slkdfjlsdkfjsdlf" ); 
    222 //        printWindow.document.close(); 
    223 //        printWindow.focus(); 
    224 //        printWindow.print(); 
    225 //        printWindow.close(); 
    226 // 
    227         // TODO export PDF 
    228217    }, 
    229218 
Note: See TracChangeset for help on using the changeset viewer.