Reorganize file structure.

This commit is contained in:
Lars Jung 2015-05-20 02:54:01 +02:00
parent c8eff2d313
commit 5b68fe731a
149 changed files with 41 additions and 38 deletions

View file

@ -0,0 +1,18 @@
modulejs.define('view/notification', ['$', 'view/root'], function ($, root) {
var $el = $('<div id="notification"/>').hide().appendTo(root.$el);
function set(content) {
if (content) {
$el.stop(true, true).html(content).fadeIn(400);
} else {
$el.stop(true, true).fadeOut(400);
}
}
return {
$el: $el,
set: set
};
});