Skip to content

Commit

Permalink
changed from replaceWith to replaceAll
Browse files Browse the repository at this point in the history
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
maddox committed Jun 26, 2008
1 parent b24c1a8 commit d307d77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion facebox.js
Expand Up @@ -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)) {
Expand Down

0 comments on commit d307d77

Please sign in to comment.