2 * Dialog for saving document to the server
7 function SaveDialog(element) {
8 $.wiki.cls.GenericDialog.call(this, element);
9 this.ctx = $.wiki.exitContext();
12 SaveDialog.prototype = new $.wiki.cls.GenericDialog();
16 SaveDialog.prototype.saveAction = function() {
20 message: "Zapisywanie..."
25 CurrentDocument.save({
26 comment: $("#komentarz").text(),
27 success: function(doc, changed, info){
32 onUnblock: function() {
37 failure: function(doc, info) {
38 self.reportErrors(info);
43 console.log('Exception:', e)
46 }; /* end of save dialog */
49 $.wiki.cls.SaveDialog = SaveDialog;