X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/ffe377758219d2500806c0807c6e902be8eba4fb..c52436a7e25876ee3509df2467c2a9ef33303436:/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 new file mode 100644 index 00000000..f86d9754 --- /dev/null +++ b/platforma/static/js/wiki/view_summary.js @@ -0,0 +1,27 @@ +(function($){ + + function SummaryPerspective(options) { + var old_callback = options.callback; + options.callback = function(){ + 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); +