Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* Changed the JS to get images from where they're installed

  • Loading branch information...
commit 1e420e9f1da283261b8bda936dc4dee8ffba7551 1 parent 0c0053c
Fran Casas franciscoj authored
2  media/javascripts/facebox.js
View
@@ -97,7 +97,7 @@
</div> \
<div class="footer"> \
<a href="#" class="close"> \
- <img src="/facebox/closelabel.gif" title="close" class="close_image" /> \
+ <img src="/images/facebox/closelabel.gif" title="close" class="close_image" /> \
</a> \
</div> \
</td> \
2  media/javascripts/facebox.pack.js
View
@@ -2,7 +2,7 @@
function k(){var b,c;if(self.pageYOffset){c=self.pageYOffset;b=self.pageXOffset}else if(document.documentElement&&document.documentElement.scrollTop){c=document.documentElement.scrollTop;b=document.documentElement.scrollLeft}else if(document.body){c=document.body.scrollTop;b=document.body.scrollLeft}return new Array(b,c)}function l(){var b;if(self.innerHeight)b=self.innerHeight;else if(document.documentElement&&document.documentElement.clientHeight)b=document.documentElement.clientHeight;else if(document.body)b=
document.body.clientHeight;return b}function j(){var b=a.a.b;b.e=b.L||b.e;b.d=b.C||b.d;b.j=b.J||b.j;b.i=b.G||b.i}function f(b,c){if(b.match(/#/)){var d=window.location.href.split("#")[0];b=b.replace(d,"");a.a.f(a(b).B().z(),c)}else b.match(a.a.b.t)?g(b,c):h(b,c)}function g(b,c){var d=new Image;d.onload=function(){a.a.f('<div class="image"><img src="'+d.src+'" /></div>',c)};d.src=b}function h(b,c){a.I(b,function(d){a.a.f(d,c)})}function i(){return a.a.b.v==false||a.a.b.opacity===null}function m(){if(!i()){a("facebox_overlay").length==
0&&a("body").append('<div id="facebox_overlay" class="facebox_hide"></div>');a("#facebox_overlay").r().g("facebox_overlayBG").h("opacity",a.a.b.opacity).click(function(){a(document).c("close.facebox")}).p(200);return false}}function n(){if(!i()){a("#facebox_overlay").q(200,function(){a("#facebox_overlay").w("facebox_overlayBG");a("#facebox_overlay").g("facebox_hide");a("#facebox_overlay").remove()});return false}}a.a=function(b,c){a.a.k();if(b.l)h(b.l);else if(b.s)g(b.s);else if(b.o)f(b.o);else a.K(b)?
-b.call(a):a.a.f(b,c)};a.extend(a.a,{b:{opacity:0,v:true,e:"/images/facebox/loading.gif",d:"/images/facebox/closelabel.gif",j:["png","jpg","jpeg","gif"],i:' <div id="facebox" style="display:none;"> <div class="popup"> <table> <tbody> <tr> <td class="tl"/><td class="b"/><td class="tr"/> </tr> <tr> <td class="b"/> <td class="body"> <div class="content"> </div> <div class="footer"> <a href="#" class="close"> <img src="/facebox/closelabel.gif" title="close" class="close_image" /> </a> </div> </td> <td class="b"/> </tr> <tr> <td class="bl"/><td class="b"/><td class="br"/> </tr> </tbody> </table> </div> </div>'},
+b.call(a):a.a.f(b,c)};a.extend(a.a,{b:{opacity:0,v:true,e:"/images/facebox/loading.gif",d:"/images/facebox/closelabel.gif",j:["png","jpg","jpeg","gif"],i:' <div id="facebox" style="display:none;"> <div class="popup"> <table> <tbody> <tr> <td class="tl"/><td class="b"/><td class="tr"/> </tr> <tr> <td class="b"/> <td class="body"> <div class="content"> </div> <div class="footer"> <a href="#" class="close"> <img src="/images/facebox/closelabel.gif" title="close" class="close_image" /> </a> </div> </td> <td class="b"/> </tr> <tr> <td class="bl"/><td class="b"/><td class="br"/> </tr> </tbody> </table> </div> </div>'},
k:function(){e();if(a("#facebox .loading").length==1)return true;m();a("#facebox .content").empty();a("#facebox .body").n().r().F().append('<div class="loading"><img src="'+a.a.b.e+'"/></div>');a("#facebox").h({top:k()[1]+l()/10,left:385.5}).z();a(document).m("keydown.facebox",function(b){b.keyCode==27&&a.a.close();return true});a(document).c("loading.facebox")},f:function(b,c){a(document).c("beforeReveal.facebox");c&&a("#facebox .content").g(c);a("#facebox .content").append(b);a("#facebox .loading").remove();
a("#facebox .body").n().p("normal");a("#facebox").h("left",a(window).width()/2-a("#facebox table").width()/2);a(document).c("reveal.facebox").c("afterReveal.facebox")},close:function(){a(document).c("close.facebox");return false}});a.H.a=function(b){function c(){a.a.k(true);var d=this.rel.match(/facebox\[?\.(\w+)\]?/);if(d)d=d[1];f(this.href,d);return false}e(b);return this.click(c)};a(document).m("close.facebox",function(){a(document).M("keydown.facebox");a("#facebox").q(function(){a("#facebox .content").w().g("content");
n();a("#facebox .loading").remove()})})})(jQuery);
Please sign in to comment.
Something went wrong with that request. Please try again.