You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The popup/iframe is pulling a lot of stylesheets from the original document, that I don't need in my popup.
As a suggestion, if you add an extra setting includeStyles : true,
Then you can adjust the getHead() method to grab those stylesheets if includesStyles is true.... which it would be by default, but would allow me to kill those stylesheets in a specific print dialog.
getHead : function() {
var extraHead = "";
var links = "";
if ( settings.extraHead ) settings.extraHead.replace( /([^,]+)/g, function(m){ extraHead += m });
if( settings.includeStyles ) {
$(document).find("link")
.filter(function(){ // Requirement: <link> element MUST have rel="stylesheet" to be considered in print document
var relAttr = $(this).attr("rel");
return ($.type(relAttr) === 'undefined') == false && relAttr.toLowerCase() == 'stylesheet';
})
.filter(function(){ // Include if media is undefined, empty, print or all
var mediaAttr = $(this).attr("media");
return $.type(mediaAttr) === 'undefined' || mediaAttr == "" || mediaAttr.toLowerCase() == 'print' || mediaAttr.toLowerCase() == 'all'
})
.each(function(){
links += '<link type="text/css" rel="stylesheet" href="' + $(this).attr("href") + '" >';
});
}
if ( settings.extraCss ) settings.extraCss.replace( /([^,\s]+)/g, function(m){ links += '<link type="text/css" rel="stylesheet" href="' + m + '">' });
return "<head><title>" + settings.popTitle + "</title>" + extraHead + links + "</head>";
},
The text was updated successfully, but these errors were encountered:
The popup/iframe is pulling a lot of stylesheets from the original document, that I don't need in my popup.
As a suggestion, if you add an extra setting
includeStyles : true,
Then you can adjust the
getHead()
method to grab those stylesheets ifincludesStyles
is true.... which it would be by default, but would allow me to kill those stylesheets in a specific print dialog.The text was updated successfully, but these errors were encountered: