1
0
mirror of https://github.com/moparisthebest/mail synced 2025-02-12 21:20:14 -05:00
mail/src/js/view/folderlistitem-view.js
2013-08-20 18:27:12 +02:00

22 lines
472 B
JavaScript

define(['jquery', 'underscore', 'backbone', 'js/app-config'], function($, _, Backbone, app) {
'use strict';
var FolderListItemView = Backbone.View.extend({
tagName: "li",
initialize: function() {
this.template = _.template(app.util.tpl.get('folderlistitem'));
},
render: function() {
var params = this.model;
params.account = this.options.account;
$(this.el).html(this.template(params));
return this;
}
});
return FolderListItemView;
});