blob: 1963823c93990df8d3b8c0289ec1fee3f30bb188 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
define([
'backbone.marionette',
'./templates'
], function (Marionette) {
return Marionette.ItemView.extend({
template: Templates['update-center-header'],
collectionEvents: {
all: 'render'
},
events: {
'click .js-cancel-all': 'cancelAll'
},
cancelAll: function () {
this.collection.cancelAll();
},
serializeData: function () {
return _.extend(Marionette.ItemView.prototype.serializeData.apply(this, arguments), {
installing: this.collection._installedCount,
uninstalling: this.collection._uninstalledCount
});
}
});
});
|