X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/9088c2ab96934ee0318e55dadf3573f3325201ff..cf92775489840f1dc7b2c65fae6b968beadbad7e:/modules/indicator/indicator.js diff --git a/modules/indicator/indicator.js b/modules/indicator/indicator.js new file mode 100644 index 0000000..0e9bcdc --- /dev/null +++ b/modules/indicator/indicator.js @@ -0,0 +1,32 @@ +define([ +'libs/jquery-1.9.1.min', +'libs/underscore-min', +'libs/text!./template.html' +], function($, _, template) { + +'use strict'; + +return function(sandbox) { + + var view = { + dom: $(_.template(template)()), + setup: function() { + + } + } + + return { + start: function() { sandbox.publish('ready'); }, + getView: function() { return view.dom; }, + showMessage: function(msg) { + view.dom.html('' + msg + '').show(); + }, + clearMessage: function() { + view.dom.empty(); + } + + } + +} + +});