Sharing – Sharedaddy – Print on IE
-
WordPress: 4.5
Jetpack: 4.0.2Print functionality on IE 11 is not working. All other browsers work perfectly (icons are hidden on mobile by design). I have narrowed down the problem to sharing.js
If I force IE to use printUrl( uid , ref ); rather than print(); it works fine.
___________________________________________________________________________
from webpage:<li class="share-print"> <a rel="nofollow" data-shared="" class="share-print sd-button share-icon no-text" href="https://localhost/junk/#print" target="_blank" title="Click to print"> <span></span> <span class="sharing-screen-reader-text">Click to print (Opens in new window)</span> </a> </li>
__________________________________________________________________________
from sharing.js:var printUrl = function ( uniqueId, urlToPrint ) { $( 'body:first' ).append( '<iframe style="position:fixed;top:100;left:100;height:1px;width:1px;border:none;" id="printFrame-' + uniqueId + '" name="printFrame-' + uniqueId + '" src="' + urlToPrint + '" onload="frames[\'printFrame-' + uniqueId + '\'].focus();frames[\'printFrame-' + uniqueId + '\'].print();"></iframe>' ); }; // Print button $( this ).find( 'a.share-print' ).click( function() { var ref = $( this ).attr( 'href' ), do_print = function() { if ( ref.indexOf( '#print' ) === -1 ) { var uid = new Date().getTime(); printUrl( uid , ref ); } else { print(); } }; // Is the button in a dropdown? if ( $( this ).parents( '.sharing-hidden' ).length > 0 ) { $( this ).parents( '.inner' ).slideUp( 0, function() { do_print(); } ); } else { do_print(); } return false; } );
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Sharing – Sharedaddy – Print on IE’ is closed to new replies.