trigger.data('originalContent', trigger.html());
trigger.text(disabledText);
}
- },
- setVersion: function(version) {
- view.find('.version').text(version);
}
};
</div>
<div style="clear:both;"></div>
<ul class="bottom">
- <li>wersja: <span class="version"></span></li>
<li><a href="#" data-cmd="drop-draft" data-disabled-text="<%= gettext('no draft exists') %>"><%= gettext('drop a working draft') %></a></li>
<li><button class="btn btn-mini btn-info" data-cmd="save"><%= gettext('Save') %></button></li>
</ul>
sandbox.getModule('indicator').clearMessage({message: msg[what]});
if(status === 'success' && what === 'remote') {
- sandbox.getModule('mainBar').setVersion(data.version);
documentSummary.setDraftField('-');
sandbox.getModule('mainBar').setCommandEnabled('drop-draft', false);
sandbox.getModule('mainBar').setCommandEnabled('save', false);
documentReverted: function(version) {
documentIsDirty = false;
sandbox.getModule('indicator').clearMessage({message:'Wersja ' + version + ' przywrócona'});
- sandbox.getModule('mainBar').setVersion(version);
}
};
eventHandlers.mainBar = {
ready: function() {
- sandbox.getModule('mainBar').setVersion(sandbox.getModule('data').getDocument().properties.version);
views.mainLayout.setView('topPanel', sandbox.getModule('mainBar').getView());
},
'cmd.save': function() {