X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/02a98d2af6f1fabf567b575c5f2d818688af1594..1b8ab1430082a145a3e4807de837dcc1568178a3:/platforma/static/js/wiki/diff_view.js diff --git a/platforma/static/js/wiki/diff_view.js b/platforma/static/js/wiki/diff_view.js new file mode 100644 index 00000000..3eafd135 --- /dev/null +++ b/platforma/static/js/wiki/diff_view.js @@ -0,0 +1,27 @@ +(function($){ + + function DiffPerspective(options) { + var old_callback = options.callback || function() {}; + options.callback = function(){ + old_callback.call(this); + }; + + $.wiki.Perspective.call(this, options); + }; + + DiffPerspective.prototype = new $.wiki.Perspective(); + + DiffPerspective.prototype.freezeState = function(){ + // must + }; + + DiffPerspective.prototype.onEnter = function(success, failure){ + $.wiki.Perspective.prototype.onEnter.call(this); + + console.log("Entered diff view"); + }; + + $.wiki.DiffPerspective = DiffPerspective; + +})(jQuery); +