X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/cf92775489840f1dc7b2c65fae6b968beadbad7e..bb42027c8fd9ed17234381d3c366c387a20592f0:/modules/mainBar/mainBar.js?ds=inline diff --git a/modules/mainBar/mainBar.js b/modules/mainBar/mainBar.js index 75fd599..6966e4a 100644 --- a/modules/mainBar/mainBar.js +++ b/modules/mainBar/mainBar.js @@ -11,15 +11,18 @@ return function(sandbox) { view.find('button').click(function(e) { e.preventDefault(); sandbox.publish('cmd.' + $(e.target).attr('data-cmd')); - }) + }); return { start: function() { sandbox.publish('ready'); }, getView: function() {return view;}, setCommandEnabled: function(cmd, enabled) { view.find('[data-cmd='+cmd+']').toggleClass('disabled', !enabled); + }, + setVersion: function(version) { + view.find('.version').text(version); } - } + }; };