Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
set final javascript files for demo
  • Loading branch information
drogus committed Jul 3, 2008
1 parent 48e953b commit db955da
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
7 changes: 6 additions & 1 deletion public/javascripts/progress.js
Expand Up @@ -2,6 +2,7 @@
// was used, jQuery is passed as argument in document ready
// so we can name it $
jQuery(function($) {
$.lightBoxFu.initialize({imagesPath: '/images/', stylesheetsPath: '/stylesheets/'});
// add upload progress to our form
$('form.progress').uploadProgress({
start:function(){
Expand All @@ -20,6 +21,10 @@ jQuery(function($) {
jQuery('#size').html(parseInt(upload.size/1024)+" kB");
jQuery('#percent').html(upload.percents+"%");
},
interval: 2000
interval: 2000,
/* if we are using images it's good to preload them, safari has problems with
downloading anything after hitting submit button. these are images for lightBoxFu
and progress bar */
preloadImages: ["/images/overlay.png", "/images/ajax-loader.gif"]
});
});
3 changes: 3 additions & 0 deletions public/javascripts/step1.js
Expand Up @@ -25,6 +25,9 @@ jQuery(function($) {
jQuery('#percent').html(upload.percents+"%");
},
interval: 2000,
/* if we are using images it's good to preload them, safari has problems with
downloading anything after hitting submit button. these are images for lightBoxFu
and progress bar */
preloadImages: ["/images/overlay.png", "/images/ajax-loader.gif"]
});

Expand Down
3 changes: 3 additions & 0 deletions public/javascripts/step2.js
Expand Up @@ -65,6 +65,9 @@ jQuery(function($) {
window.setTimeout($.lightBoxFu.close, 2000);
},
interval: 2000,
/* if we are using images it's good to preload them, safari has problems with
downloading anything after hitting submit button. these are images for lightBoxFu
and progress bar */
preloadImages: ["/images/overlay.png", "/images/ajax-loader.gif"]
});
});

0 comments on commit db955da

Please sign in to comment.