X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/412e60ded1457ec0f408e2234c9dd60122929bac..efe36f4f1b5df351eeb4d40a54c3900cf9a7079b:/modules/mainBar/mainBar.js diff --git a/modules/mainBar/mainBar.js b/modules/mainBar/mainBar.js deleted file mode 100644 index ecf6812..0000000 --- a/modules/mainBar/mainBar.js +++ /dev/null @@ -1,29 +0,0 @@ -define([ -'libs/jquery', -'libs/underscore', -'libs/text!./template.html'], function($, _, template) { - -'use strict'; - -return function(sandbox) { - - var view = $(_.template(template)()); - 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); - } - }; - -}; - -}); \ No newline at end of file