1
0
mirror of https://github.com/moparisthebest/mail synced 2025-02-13 05:30:21 -05:00
mail/src/js/view/folderlistitem-view.js

22 lines
472 B
JavaScript
Raw Normal View History

2013-08-20 12:27:12 -04:00
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;
});