summaryrefslogtreecommitdiffstats
path: root/js/jquery/plugins/visibility
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2016-05-12 21:22:51 +0200
committerDavid Lawrence <dkl@mozilla.com>2016-05-12 21:22:51 +0200
commit44a2e60b4f7030a06471a03699e2a167875f250e (patch)
tree31feaf091280d583fe043ae693a709df508600e7 /js/jquery/plugins/visibility
parent6a48e0211dec6ec2d5a73ad1982682b744fb3474 (diff)
downloadbugzilla-44a2e60b4f7030a06471a03699e2a167875f250e.tar.gz
bugzilla-44a2e60b4f7030a06471a03699e2a167875f250e.tar.xz
Bug 1270295 - don't update timestamps when the tab is not active / in the background
Diffstat (limited to 'js/jquery/plugins/visibility')
-rw-r--r--js/jquery/plugins/visibility/visibility-min.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/jquery/plugins/visibility/visibility-min.js b/js/jquery/plugins/visibility/visibility-min.js
new file mode 100644
index 000000000..e47b5c808
--- /dev/null
+++ b/js/jquery/plugins/visibility/visibility-min.js
@@ -0,0 +1,2 @@
+/*! jquery-visibility v1.0.12 | MIT license | http://mths.be/visibility */
+!function(e,i){"function"==typeof define&&define.amd?define(["jquery"],function(t){return i(e,t)}):"object"==typeof exports?module.exports=i(e,require("jquery")):i(e,jQuery)}("undefined"!=typeof window?window:this,function(e,i,t){"use strict";function n(){"hidden"!==o&&(r.hidden=s.pageVisibility?r[o]:t)}for(var o,u,r=e.document,f=["webkit","o","ms","moz",""],s=i.support||{},d=("onfocusin"in r&&"hasFocus"in r?"focusin focusout":"focus blur");(u=f.pop())!==t;)if(o=(u?u+"H":"h")+"idden",s.pageVisibility=r[o]!==t,s.pageVisibility){d=u+"visibilitychange";break}n(),i(/blur$/.test(d)?e:r).on(d,function(e){var u=e.type,f=e.originalEvent;if(f){var s=f.toElement;(!/^focus./.test(u)||s===t&&f.fromElement===t&&f.relatedTarget===t)&&i(r).triggerHandler(o&&r[o]||/^(?:blur|focusout)$/.test(u)?"hide":"show"),n()}})});