3 function SummaryPerspective(options) {
4 var old_callback = options.callback;
7 options.callback = function(){
8 $('#publish_button').click(function() {
9 $.blockUI({message: "Oczekiwanie na odpowiedź serwera..."});
11 success: function(doc, data) {
12 $.blockUI({message: "Udało się.", timeout: 2000});
14 failure: function(doc, message) {
24 old_callback.call(this);
27 $.wiki.Perspective.call(this, options);
30 SummaryPerspective.prototype = new $.wiki.Perspective();
32 SummaryPerspective.prototype.freezeState = function(){
36 SummaryPerspective.prototype.onEnter = function(success, failure){
37 $.wiki.Perspective.prototype.onEnter.call(this);
39 console.log("Entered summery view");
42 $.wiki.SummaryPerspective = SummaryPerspective;