X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/4c48c47d0b84e516114c16ee191359166e93a51c..210e62452e0e9f26f3e006c874b66ac44005d492:/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 b16c288f..de6fcf15 100644 --- a/redakcja/static/js/wiki/view_summary.js +++ b/redakcja/static/js/wiki/view_summary.js @@ -1,29 +1,6 @@ (function($){ function SummaryPerspective(options) { - var old_callback = options.callback; - var self = this; - - options.callback = function(){ - $('#publish_button').click(function() { - $.blockUI({message: "Oczekiwanie na odpowiedź serwera..."}); - self.doc.publish({ - success: function(doc, data) { - $.blockUI({message: "Udało się.", timeout: 2000}); - }, - failure: function(doc, message) { - $.blockUI({ - message: message, - timeout: 5000 - }); - } - - }); - }); - - old_callback.call(this); - }; - $.wiki.Perspective.call(this, options); };