X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/0da29a22a23a90561df3d201a299f3007c84d524..0ba24b411f3a582d7688d591c451f307434a2c3a:/redakcja/static/js/wiki/view_summary.js?ds=sidebyside

diff --git a/redakcja/static/js/wiki/view_summary.js b/redakcja/static/js/wiki/view_summary.js
index 8fdf4b96..55b9e53b 100644
--- a/redakcja/static/js/wiki/view_summary.js
+++ b/redakcja/static/js/wiki/view_summary.js
@@ -12,17 +12,19 @@
 			});
 
         	old_callback.call(this);
-		}
+		};
 
 		$.wiki.Perspective.call(this, options);
-    };
+    }
 
     SummaryPerspective.prototype = new $.wiki.Perspective();
 
 	SummaryPerspective.prototype.refreshCover = function() {
+		$('#summary-cover-refresh').attr('disabled', 'disabled');
 		this.doc.refreshCover({
 			success: function(text) {
 				$('#summary-cover').attr('src', text);
+			$('#summary-cover-refresh').removeAttr('disabled');
 			}
 		});
 	};