From: Elan Ruusamäe Date: Thu, 12 Mar 2009 01:01:43 +0000 (+0000) Subject: - recognize konqueror from kde3 as WebKit to setup dom:loaded event emulation X-Git-Tag: auto/ac/dokuwiki-plugin-lightbox-20090312-1~6 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fdokuwiki-plugin-lightbox.git;a=commitdiff_plain;h=3c1409fdbb1d982e7dbc5e5abc668d6fc9e5b749 - recognize konqueror from kde3 as WebKit to setup dom:loaded event emulation Changed files: dokuwiki-plugin-lightbox-konqueror.patch -> 1.1 --- diff --git a/dokuwiki-plugin-lightbox-konqueror.patch b/dokuwiki-plugin-lightbox-konqueror.patch new file mode 100644 index 0000000..b0bfa4c --- /dev/null +++ b/dokuwiki-plugin-lightbox-konqueror.patch @@ -0,0 +1,11 @@ +--- lightbox/script.js~ 2009-03-12 03:00:14.000000000 +0200 ++++ lightbox/script.js 2009-03-12 03:00:15.750346833 +0200 +@@ -12,7 +12,7 @@ + Browser: { + IE: !!(window.attachEvent && !window.opera), + Opera: !!window.opera, +- WebKit: navigator.userAgent.indexOf('AppleWebKit/') > -1, ++ WebKit: navigator.userAgent.indexOf('AppleWebKit/') > -1 || navigator.userAgent.indexOf('KHTML') > -1, + Gecko: navigator.userAgent.indexOf('Gecko') > -1 && navigator.userAgent.indexOf('KHTML') == -1, + MobileSafari: !!navigator.userAgent.match(/Apple.*Mobile.*Safari/) + },