showMessage: function(msg) {\r
view.dom.html('<span>' + msg + '</span>').show();\r
},\r
- clearMessage: function() {\r
+ clearMessage: function(report) {\r
view.dom.empty();\r
+ if(report && report.message) {\r
+ view.dom.html('<span class="success">' + report.message + '</span>').show().fadeOut(4000);\r
+ }\r
}\r
\r
}\r
border: solid 1px #f6e39c;\r
font-size:12px;\r
}\r
+ \r
+ span.success {\r
+ background: #cef9be;\r
+ border-color: darken(#cef9be, 10%);\r
+ }\r
}
\ No newline at end of file
},\r
savingEnded: function(status) {\r
sandbox.getModule('mainBar').setCommandEnabled('save', true);\r
- sandbox.getModule('indicator').clearMessage();\r
+ sandbox.getModule('indicator').clearMessage({message:'Dokument zapisany'});\r
},\r
historyItemAdded: function(item) {\r
sandbox.getModule('documentHistory').addHistory([item], {animate: true});\r