summaryrefslogtreecommitdiff
path: root/itjs.class
diff options
context:
space:
mode:
authorChristian Helbling2011-11-17 12:43:34 +0000
committerChristian Helbling2011-11-17 12:43:34 +0000
commit8922fa4934a13154c6759147b761b8b92a3920f8 (patch)
tree0804c8673acbc9487bab52a6de001a36ff70781e /itjs.class
parent2234ec883702353296f88ec8362079baba37da68 (diff)
downloaditools-8922fa4934a13154c6759147b761b8b92a3920f8.tar.gz
itools-8922fa4934a13154c6759147b761b8b92a3920f8.tar.bz2
itools-8922fa4934a13154c6759147b761b8b92a3920f8.zip
add debug parameter "print" for debugging css of printouts (@media print)
Diffstat (limited to 'itjs.class')
-rw-r--r--itjs.class2
1 files changed, 2 insertions, 0 deletions
diff --git a/itjs.class b/itjs.class
index 475e91f..3350808 100644
--- a/itjs.class
+++ b/itjs.class
@@ -152,6 +152,8 @@ function strip($code)
'|\s+/\*.*?\*/|s', # MUST require at least one space before "/*" (jquery.js) but MUST NOT require space before "*/" (searchmap.js)
'|^\s+|m'
), array(), $code);
+ if (EDC('print'))
+ $code = it::replace(array('@media\s+print' => '@media screen'), $code);
return $code;
}