Commit 6905f7df by Calen Pennington

Merge pull request #1183 from MITx/bug/dhm/ie7

Bug/dhm/ie7
parents a53959a7 4a953d49
...@@ -39,3 +39,11 @@ $ -> ...@@ -39,3 +39,11 @@ $ ->
$('#signup-modal input[name="email"]').focus() $('#signup-modal input[name="email"]').focus()
_gaq.push(['_trackPageview', '/signup']) _gaq.push(['_trackPageview', '/signup'])
false false
# fix for ie
if !Array::indexOf
Array::indexOf = (obj, start = 0) ->
for ele, i in this[start..]
if ele is obj
return i + start
return -1
...@@ -2,6 +2,5 @@ ...@@ -2,6 +2,5 @@
// content-box | border-box | inherit // content-box | border-box | inherit
-webkit-box-sizing: $box; -webkit-box-sizing: $box;
-moz-box-sizing: $box; -moz-box-sizing: $box;
box-sizing: $box;
box-sizing: $box; *behavior: url(/static/scripts/boxsizing.htc); box-sizing: $box; *behavior: url(/static/scripts/boxsizing.htc);
} }
...@@ -85,7 +85,10 @@ function update(){ ...@@ -85,7 +85,10 @@ function update(){
} }
resizetimeout = window.setTimeout(function(){ resizetimeout = window.setTimeout(function(){
restore(); restore();
init(); try {
init();
}
catch (err) {}
resizetimeout = null; resizetimeout = null;
},100); },100);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment