mirror of
https://github.com/moparisthebest/mail
synced 2025-02-12 21:20:14 -05:00
22 lines
472 B
JavaScript
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;
|
|
}); |