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:
e72a8b3
)
Disable focus() on iOS
author
Alexander Ebert
<ebert@woltlab.com>
Thu, 27 Aug 2015 14:16:05 +0000
(16:16 +0200)
committer
Alexander Ebert
<ebert@woltlab.com>
Thu, 27 Aug 2015 14:16:05 +0000
(16:16 +0200)
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 578433137199a095167c300a6fa591ff3725f3ec..9e866b7f8416a7f4cb9a8b99da3fa0684e6fa784 100755
(executable)
--- a/
wcfsetup/install/files/js/WCF.js
+++ b/
wcfsetup/install/files/js/WCF.js
@@
-124,7
+124,7
@@
window.shuffle = function(array) {
/**
* User-Agent based browser detection and touch detection.
*/
-(function() {
+(function(
jQuery
) {
var ua = navigator.userAgent.toLowerCase();
var match = /(chrome)[ \/]([\w.]+)/.exec( ua ) ||
/(webkit)[ \/]([\w.]+)/.exec( ua ) ||
@@
-181,7
+181,14
@@
window.shuffle = function(array) {
// Redactor support
jQuery.browser.redactor = true;
-})();
+
+ // work-around for zoom bug on iOS when using .focus()
+ if (jQuery.browser.iOS) {
+ jQuery.fn.focus = function() {
+ return arguments[0];
+ };
+ }
+})(jQuery);
/**
* Initialize WCF namespace