var AllItemsFolder = Backbone.Model.extend({
	initialize: function() {
		this.items = new ItemCollection();
		this.items.url = '/item';

		this.set({
			name: LANG.all_items_folder,
			route: 'item',
			iconclass: 'icon-asterisk'
		});
	},
	getNextInList: function() {
		return folders.first();
    },
	getPreviousInList: function() {
		return this;
    }
});

var AllItemsFolder = Backbone.Model.extend({
	initialize: function() {
		this.items = new ItemCollection();
		this.items.url = '/item';
		this.listenTo(this.items, 'itemRead', this.itemRead);
		this.listenTo(this.items, 'itemUnread', this.itemUnread);

		this.set({
			name: LANG.all_items_folder,
			route: 'item',
			iconclass: 'icon-asterisk'
		});
	},
	getNextInList: function() {
		return folders.first();
    },
	getPreviousInList: function() {
		return this;
    },
	itemRead: function(feed_id) {
		folders.each(function(folder) {
			var feed = folder.feeds.get(feed_id);
			if(feed) {
				feed.decrementReadCount();
			}
		});
	},
	itemUnread: function(feed_id) {
		folders.each(function(folder) {
			var feed = folder.feeds.get(feed_id);
			if(feed) {
				feed.incrementReadCount();
			}
		});
	}
});

Add code to update the read count when reading items in the "all items" folder
Add code to update the read count when reading items in the "all items"
folder
