projects
/
GitHub
/
WoltLab
/
WCF.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17b4a60
)
Fixed jQuery.browser
author
Alexander Ebert
<ebert@woltlab.com>
Tue, 28 Oct 2014 21:47:22 +0000
(22:47 +0100)
committer
Alexander Ebert
<ebert@woltlab.com>
Tue, 28 Oct 2014 21:47:22 +0000
(22:47 +0100)
wcfsetup/install/files/js/WCF.js
patch
|
blob
|
blame
|
history
diff --git
a/wcfsetup/install/files/js/WCF.js
b/wcfsetup/install/files/js/WCF.js
index 79a2943e5264d91a86d13a7b1a4850ce26cc4a9b..f5629920017a4d7c74e828e47bb004f19d301f24 100755
(executable)
--- a/
wcfsetup/install/files/js/WCF.js
+++ b/
wcfsetup/install/files/js/WCF.js
@@
-151,7
+151,8
@@
function shuffle(array) {
browser.safari = true;
}
- jQuery.browser = browser;
+ jQuery.browser = jQuery.browser || { };
+ jQuery.browser = $.extend(jQuery.browser, browser);
jQuery.browser.touch = (!!('ontouchstart' in window) || (!!('msMaxTouchPoints' in window.navigator) && window.navigator.msMaxTouchPoints > 0));
// detect smartphones