public
Description: Simple app for my jQuery + Rails tutorial
Homepage: http://drogomir.com/blog
Clone URL: git://github.com/drogus/mugshots.git
set final javascript files for demo
drogus (author)
Thu Jul 03 09:34:20 -0700 2008
commit  db955da4184460f997284baff226c80a8dc3395e
tree    4b0dcf4353722df5eb9e2555cfe5292f283edae4
parent  48e953b9c73191288f9c706135063664db55e8a0
...
2
3
4
 
5
6
7
...
20
21
22
23
 
 
 
 
 
24
25
26
...
2
3
4
5
6
7
8
...
21
22
23
 
24
25
26
27
28
29
30
31
0
@@ -2,6 +2,7 @@
0
 // was used, jQuery is passed as argument in document ready
0
 // so we can name it $
0
 jQuery(function($) {
0
+ $.lightBoxFu.initialize({imagesPath: '/images/', stylesheetsPath: '/stylesheets/'});
0
   // add upload progress to our form
0
   $('form.progress').uploadProgress({
0
     start:function(){
0
@@ -20,6 +21,10 @@ jQuery(function($) {
0
       jQuery('#size').html(parseInt(upload.size/1024)+" kB");
0
       jQuery('#percent').html(upload.percents+"%");
0
     },
0
- interval: 2000
0
+ interval: 2000,
0
+ /* if we are using images it's good to preload them, safari has problems with
0
+ downloading anything after hitting submit button. these are images for lightBoxFu
0
+ and progress bar */
0
+ preloadImages: ["/images/overlay.png", "/images/ajax-loader.gif"]
0
   });
0
 });
0
\ No newline at end of file
...
25
26
27
 
 
 
28
29
30
...
25
26
27
28
29
30
31
32
33
0
@@ -25,6 +25,9 @@ jQuery(function($) {
0
       jQuery('#percent').html(upload.percents+"%");
0
     },
0
     interval: 2000,
0
+ /* if we are using images it's good to preload them, safari has problems with
0
+ downloading anything after hitting submit button. these are images for lightBoxFu
0
+ and progress bar */
0
     preloadImages: ["/images/overlay.png", "/images/ajax-loader.gif"]
0
   });
0
   
...
65
66
67
 
 
 
68
69
70
71
...
65
66
67
68
69
70
71
72
73
74
0
@@ -65,6 +65,9 @@ jQuery(function($) {
0
       window.setTimeout($.lightBoxFu.close, 2000);
0
     },
0
     interval: 2000,
0
+ /* if we are using images it's good to preload them, safari has problems with
0
+ downloading anything after hitting submit button. these are images for lightBoxFu
0
+ and progress bar */
0
     preloadImages: ["/images/overlay.png", "/images/ajax-loader.gif"]
0
   });
0
 });
0
\ No newline at end of file

Comments

    No one has commented yet.