Index: modules/overlay/overlay-parent.js
===================================================================
RCS file: /cvs/drupal/drupal/modules/overlay/overlay-parent.js,v
retrieving revision 1.12
diff -u -r1.12 overlay-parent.js
--- modules/overlay/overlay-parent.js	6 Jan 2010 04:03:39 -0000	1.12
+++ modules/overlay/overlay-parent.js	6 Jan 2010 13:08:00 -0000
@@ -210,7 +210,7 @@
     if (!self.isLoading) {
       // As the iframe is being removed we need to remove all load handlers, not
       // just the ones namespaced with overlay-event.
-      self.$iframe.unbind('load');
+      self.$iframe.unbind('load load.overlay-event');
       self.destroy();
     }
 
@@ -694,7 +694,7 @@
 
   var href = $target.attr('href');
   // Only continue if link has an href attribute.
-  if (href != undefined) {
+  if (href != undefined && href != '#') {
     // Open admin links in the overlay.
     if (self.isAdminLink(href)) {
       href = self.fragmentizeLink($target.get(0));
