X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/36f6233fd79390ad5af8a1532eac60a0ae57c825..f938afb8ab4cb091d12e0ef0311eaea14b774798:/platforma/static/js/wiki/view_summary.js diff --git a/platforma/static/js/wiki/view_summary.js b/platforma/static/js/wiki/view_summary.js deleted file mode 100644 index 811096dd..00000000 --- a/platforma/static/js/wiki/view_summary.js +++ /dev/null @@ -1,45 +0,0 @@ -(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); - }; - - SummaryPerspective.prototype = new $.wiki.Perspective(); - - SummaryPerspective.prototype.freezeState = function(){ - // must - }; - - SummaryPerspective.prototype.onEnter = function(success, failure){ - $.wiki.Perspective.prototype.onEnter.call(this); - - console.log("Entered summery view"); - }; - - $.wiki.SummaryPerspective = SummaryPerspective; - -})(jQuery); -