Restructure file base.

This commit is contained in:
Lars Jung 2015-05-12 16:08:20 +02:00
parent 057a5f05a5
commit ee241e7e3f
151 changed files with 88 additions and 86 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
};
});