From 00763fba8080508aa80a5e1b998b3f55ce0c6ae7 Mon Sep 17 00:00:00 2001 From: Siddharth Agarwal Date: Sun, 6 May 2012 20:48:38 +0530 Subject: [PATCH 1/2] Add classes for Windows XP/2K/NT and Windows Vista+ --- css_browser_selector_dev.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/css_browser_selector_dev.js b/css_browser_selector_dev.js index 3fddee5..f382a02 100644 --- a/css_browser_selector_dev.js +++ b/css_browser_selector_dev.js @@ -114,7 +114,8 @@ function css_browser_selector(u) :is('windows nt 5.0')?' win_2k' :is('windows nt 4.0') || is('WinNT4.0') ?' win_nt' : '' - ) + ) + + (is('windows nt [45]') || is('WinNT4.0')) ? ' win_xp_2k_nt' : ' win_vista_plus') :is('freebsd')?'freebsd' :(is('x11|linux'))?'linux' :'' From 22b02a80c1539a7f08e4644db6587e84f6e181b8 Mon Sep 17 00:00:00 2001 From: Siddharth Agarwal Date: Sun, 6 May 2012 21:41:07 +0530 Subject: [PATCH 2/2] Add a missing opening paren --- css_browser_selector_dev.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/css_browser_selector_dev.js b/css_browser_selector_dev.js index f382a02..8f9df34 100644 --- a/css_browser_selector_dev.js +++ b/css_browser_selector_dev.js @@ -115,7 +115,7 @@ function css_browser_selector(u) :is('windows nt 4.0') || is('WinNT4.0') ?' win_nt' : '' ) + - (is('windows nt [45]') || is('WinNT4.0')) ? ' win_xp_2k_nt' : ' win_vista_plus') + ((is('windows nt [45]') || is('WinNT4.0')) ? ' win_xp_2k_nt' : ' win_vista_plus') :is('freebsd')?'freebsd' :(is('x11|linux'))?'linux' :''