2 'libs/jquery-1.9.1.min',
\r
3 'libs/underscore-min',
\r
4 'libs/text!./template.html'
\r
5 ], function($, _, template) {
\r
9 return function(sandbox) {
\r
12 dom: $(_.template(template)()),
\r
19 start: function() { sandbox.publish('ready'); },
\r
20 getView: function() { return view.dom; },
\r
21 showMessage: function(msg) {
\r
22 view.dom.html('<span>' + msg + '</span>').show();
\r
24 clearMessage: function(report) {
\r
26 if(report && report.message) {
\r
27 view.dom.html('<span class="success">' + report.message + '</span>').show().fadeOut(4000);
\r