Skip to content
Browse files

to avoid jQuery() create element by innerHTML

  • Loading branch information...
1 parent 5302c56 commit 6febaa97929e18794df391dc95bd9fb55070502c @t-ashula t-ashula committed May 28, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 public/javascripts/application.js
View
2 public/javascripts/application.js 100755 → 100644
@@ -51,7 +51,7 @@ window.onorientationchange = updateOrientation;
function wm_reveal_for_hash( hash ) {
- var targetel = $(hash)
+ var targetel = $('div.content_block [id]').filter(function(i){ return $(this).attr('id') === hash.substring(1); }).eq(0);
if(targetel) {
var parentdiv = targetel.parents("div.content_block")
if(parentdiv.length > 0 && ! parentdiv.is(':visible')) {

0 comments on commit 6febaa9

Please sign in to comment.
Something went wrong with that request. Please try again.