X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/02a98d2af6f1fabf567b575c5f2d818688af1594..58e0903a3f0e1e105a11638b18b588e9eb6a8b9e:/platforma/static/js/wiki/summary_view.js diff --git a/platforma/static/js/wiki/summary_view.js b/platforma/static/js/wiki/summary_view.js index bed8155c..35f03f75 100644 --- a/platforma/static/js/wiki/summary_view.js +++ b/platforma/static/js/wiki/summary_view.js @@ -1,10 +1,12 @@ (function($){ - function SummaryPerspective(doc, callback) { - this.perspective_id = 'SummaryPerspective'; - this.doc = doc; + function SummaryPerspective(options) { + var old_callback = options.callback; + options.callback = function(){ + old_callback.call(this); + }; - callback.call(this); + $.wiki.Perspective.call(this, options); }; SummaryPerspective.prototype = new $.wiki.Perspective();