From c8250a6f70bbc0f6f299a712813ae6219b840d59 Mon Sep 17 00:00:00 2001 From: Sanj Date: Wed, 1 Jun 2011 19:46:55 +0530 Subject: [PATCH] warn older browsers on upload --- edgware/static/js/upload/upload.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/edgware/static/js/upload/upload.js b/edgware/static/js/upload/upload.js index 40e45d7..4867bab 100644 --- a/edgware/static/js/upload/upload.js +++ b/edgware/static/js/upload/upload.js @@ -255,8 +255,10 @@ $(document).ready(function() { GeckoVersion = GeckoVersion[1]; } - if(Chrome || WebKitVersion >= '534.28' || - (GeckoVersion >= '2.0')) { + if (!(Chrome || WebKitVersion >= '534.28' || + (GeckoVersion >= '2.0'))) { + alert("sorry, you need another browser to upload files to edgwareroad.org - try recent versions of firefox or chrome for best results."); + window.location = "/"; // $('#firefogg').hide(); // $('#submit').hide(); /*