[hg] galaxy 1502: Prevent workflow editor form loading in IE6 an...

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[hg] galaxy 1502: Prevent workflow editor form loading in IE6 an...

Nate Coraor (nate@bx.psu.edu)
details:   http://www.bx.psu.edu/hg/galaxy/rev/6bb33bc9903f
changeset: 1502:6bb33bc9903f
user:      James Taylor <[hidden email]>
date:      Fri Sep 12 07:13:09 2008 -0400
description:
Prevent workflow editor form loading in IE6 and print a message

1 file(s) affected in this change:

templates/workflow/editor.mako

diffs (25 lines):

diff -r 362a1c02da3d -r 6bb33bc9903f templates/workflow/editor.mako
--- a/templates/workflow/editor.mako Thu Sep 11 12:22:32 2008 -0400
+++ b/templates/workflow/editor.mako Fri Sep 12 07:13:09 2008 -0400
@@ -28,9 +28,21 @@
 
     <script type='text/javascript' src="/static/scripts/galaxy.workflow_editor.canvas.js"> </script>
     
+    <!--[if lt IE 7]>
     <script type='text/javascript'>
+    window.lt_ie_7 = true;
+    </script>
+    <![endif]-->
     
+    <script type='text/javascript'>
     $( function() {
+        if ( window.lt_ie_7 ) {
+            show_modal(
+                "Browser not supported",
+                "Sorry, the workflow editor is not supported for IE6 and below."
+            );
+            return;
+        }
         // Initialize workflow state
         reset();
         // Load the datatype info