Skip to content
Browse files

added a simple preloader

  • Loading branch information...
1 parent 8513f47 commit acc7b45f693c010d6da88204215ccc0d6f449557 @yortz committed Oct 26, 2011
View
BIN app/assets/images/spinner.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
3 app/assets/javascripts/pictures/form.js
@@ -1,5 +1,7 @@
$(function () {
+ $('.fileupload-content').append('<div id="loading"></div>');
+
var inputs = $('#new_picture :input[type=text]');
clearFields(inputs);
@@ -34,6 +36,7 @@ $(function () {
$(".best_in_place").best_in_place();
Shadowbox.init();
+ $('#loading').hide();
});
// Open download dialogs via iframes,
View
10 app/assets/stylesheets/application.css
@@ -9,3 +9,13 @@
//= require best_in_place
//= require shadowbox
*/
+
+#loading {
+ top: 50%;
+ margin-bottom: 25px;
+ margin-left: 45%;
+ margin-right: 45%;
+ width:128px;
+ height:128px;
+ background-image: url(../assets/spinner.gif);
+}

0 comments on commit acc7b45

Please sign in to comment.
Something went wrong with that request. Please try again.