honeypot for spambots
[redakcja.git] / redakcja / static / js / wiki / view_summary.js
index 8fdf4b9..55b9e53 100644 (file)
                        });
 
                old_callback.call(this);
                        });
 
                old_callback.call(this);
-               }
+               };
 
                $.wiki.Perspective.call(this, options);
 
                $.wiki.Perspective.call(this, options);
-    };
+    }
 
     SummaryPerspective.prototype = new $.wiki.Perspective();
 
        SummaryPerspective.prototype.refreshCover = function() {
 
     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);
                this.doc.refreshCover({
                        success: function(text) {
                                $('#summary-cover').attr('src', text);
+                       $('#summary-cover-refresh').removeAttr('disabled');
                        }
                });
        };
                        }
                });
        };