From 8922fa4934a13154c6759147b761b8b92a3920f8 Mon Sep 17 00:00:00 2001 From: Christian Helbling Date: Thu, 17 Nov 2011 12:43:34 +0000 Subject: add debug parameter "print" for debugging css of printouts (@media print) --- itjs.class | 2 ++ 1 file changed, 2 insertions(+) (limited to 'itjs.class') 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; } -- cgit v1.2.3