summaryrefslogtreecommitdiff
path: root/web/public
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2014-05-19 10:08:55 +0200
committerJochen Topf <jochen@topf.org>2014-05-19 10:08:55 +0200
commite0887aca95abf7cda633573d66abea6cbc7ca73d (patch)
treefcba34033d7008d88e14f3d35e87d3680536e3bb /web/public
parent39dc0d1af37cf3bcf3d8789cc6d1828d95349292 (diff)
downloadtaginfo-e0887aca95abf7cda633573d66abea6cbc7ca73d.tar
taginfo-e0887aca95abf7cda633573d66abea6cbc7ca73d.tar.gz
Disable comparison function if cookies are disabled in the browser.
Diffstat (limited to 'web/public')
-rw-r--r--web/public/js/taginfo.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/web/public/js/taginfo.js b/web/public/js/taginfo.js
index c800f2f..0604e03 100644
--- a/web/public/js/taginfo.js
+++ b/web/public/js/taginfo.js
@@ -582,6 +582,16 @@ function open_help() {
/* ============================ */
+function cookies_enabled() {
+ var cookieEnabled = (navigator.cookieEnabled) ? true : false;
+
+ if (typeof navigator.cookieEnabled == "undefined" && !cookieEnabled) {
+ document.cookie="testcookie";
+ cookieEnabled = (document.cookie.indexOf("testcookie") != -1) ? true : false;
+ }
+ return (cookieEnabled);
+}
+
function get_comparison_list() {
return jQuery.cookie('taginfo_comparison_list') || [];
}