Permalink
Browse files

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...
1 parent b24c1a8 commit d307d7780736a3be62c68c64636d822ad3658090 @maddox maddox committed Jun 26, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 facebox.js
View
2 facebox.js
@@ -256,7 +256,7 @@
if (href.match(/#/)) {
var url = window.location.href.split('#')[0]
var target = href.replace(url,'')
- $.facebox.reveal($(target).show().replaceWith("<div id='facebox_moved'></div>"), klass)
+ $.facebox.reveal($(target).show().replaceAll("<div id='facebox_moved'></div>"), klass)
// image
} else if (href.match($.facebox.settings.imageTypesRegexp)) {

0 comments on commit d307d77

Please sign in to comment.