Permalink
Browse files

Fixed a loading issue

  • Loading branch information...
1 parent 7e2f97e commit 0490392e6d6a765e768173a0e389c9d9e7520564 Robert Gaal committed Aug 14, 2008
Showing with 3 additions and 0 deletions.
  1. +3 −0 facebox.js
View
@@ -141,12 +141,15 @@ var Facebox = Class.create({
},
click_handler : function(elem, e){
+ this.loading();
Event.stop(e);
// support for rel="facebox[.inline_popup]" syntax, to add a class
var klass = elem.rel.match(/facebox\[\.(\w+)\]/);
if (klass) klass = klass[1];
+ new Effect.Appear(this.facebox, {duration: .3});
+
if (elem.href.match(/#/)){
var url = window.location.href.split('#')[0];
var target = elem.href.replace(url+'#','');

0 comments on commit 0490392

Please sign in to comment.