Permalink
Browse files

Fixes for IE8

  • Loading branch information...
Costo committed Jan 26, 2012
1 parent 753f4c0 commit a9aca72e3d95d49194b9b05e6fc9d79ac11aa317
Showing with 11 additions and 2 deletions.
  1. +8 −0 js/libs/augment.js
  2. +2 −2 js/script.js
  3. +1 −0 template.html
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -13,7 +13,7 @@ var search = document.getElementById('livesearch'),
[].map.call(searchresults, function(result) {
var tags = result.querySelector('.tags'),
- tagslist = tags.textContent.split(' '),
+ tagslist = tags.innerText.split(' '),
ielist = tagslist.filter(function(tag) {
return tag.match(/gtie.*/);
});
@@ -80,7 +80,7 @@ function showsearch(hash) {
};
// keyboard shortcut for / to go to search box.
-addEventListener('keyup', function(e){
+(window.addEventListener || window.attachEvent)('keyup', function(e){
if (e.which == 191 && document.activeElement != search)
search.focus();
});
View
@@ -88,6 +88,7 @@ <h4 class="kind {{kind}}">{{kind}}</h4>
</footer>
<!-- scripts concatenated and minified via ant build script -->
+ <script src="js/libs/augment.js"></script>
<script src="js/libs/list.js"></script>
<script src="js/libs/classList.js"></script>
<script src="js/script.js"></script>

0 comments on commit a9aca72

Please sign in to comment.