Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

changed from replaceWith to replaceAll

replaceWith was causing crazy problems with the dom and removing the first child option tag from select boxes in facebox'd div
  • Loading branch information...
commit d307d7780736a3be62c68c64636d822ad3658090 1 parent b24c1a8
Jon Maddox maddox authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  facebox.js
2  facebox.js
@@ -256,7 +256,7 @@
256 256 if (href.match(/#/)) {
257 257 var url = window.location.href.split('#')[0]
258 258 var target = href.replace(url,'')
259   - $.facebox.reveal($(target).show().replaceWith("<div id='facebox_moved'></div>"), klass)
  259 + $.facebox.reveal($(target).show().replaceAll("<div id='facebox_moved'></div>"), klass)
260 260
261 261 // image
262 262 } else if (href.match($.facebox.settings.imageTypesRegexp)) {

0 comments on commit d307d77

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