Changeset 357 in t29-www for shared/js-v6/modules/lightbox.js
- Timestamp:
- Mar 8, 2013, 5:04:14 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
shared/js-v6/modules/lightbox.js
r277 r357 10 10 11 11 t29.lightbox = {}; 12 13 t29.lightbox.paths = { 14 'css': "/shared/js/fancybox/jquery.fancybox-1.3.4.css", 15 'js': "/shared/js/fancybox/jquery.fancybox-1.3.4.pack.js" 16 }; 17 12 18 t29.lightbox.setup = function() { 13 19 var elements = $("#content .popup"); 14 20 if(elements.length) { 15 21 // we have fancybox elements on this page. Load Javascript and CSS 16 $("<style type='text/css'/>").html('@import url("/shared/js/fancybox/jquery.fancybox-1.3.4.css")').appendTo("head");17 $.getScript('/shared/js/fancybox/jquery.fancybox-1.3.4.pack.js', function(){22 t29.load.css(t29.lightbox.paths.css); 23 t29.load.js(t29.lightbox.paths.js, function(){ 18 24 elements.fancybox({ 19 25 onComplete: function() {
Note: See TracChangeset
for help on using the changeset viewer.