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

Bug/dhm/ie7
This commit is contained in:
Calen Pennington
2012-12-19 12:58:07 -08:00
3 changed files with 12 additions and 2 deletions

View File

@@ -39,3 +39,11 @@ $ ->
$('#signup-modal input[name="email"]').focus()
_gaq.push(['_trackPageview', '/signup'])
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

View File

@@ -2,6 +2,5 @@
// content-box | border-box | inherit
-webkit-box-sizing: $box;
-moz-box-sizing: $box;
box-sizing: $box;
box-sizing: $box; *behavior: url(/static/scripts/boxsizing.htc);
}

View File

@@ -85,7 +85,10 @@ function update(){
}
resizetimeout = window.setTimeout(function(){
restore();
init();
try {
init();
}
catch (err) {}
resizetimeout = null;
},100);
}