saveLocal: function (options) { this.set('id', this.get('id') || Common.generateUUID()); var localWorkspaces = this.collection.getLocalWorkspaces(); localWorkspaces[this.get('id')] = this.toJSON(); window.localStorage.setItem('workspaces', JSON.stringify(localWorkspaces)); this.trigger('sync', this, options); },
defaults: function() { return { alpha: 0.5, show: true, id: Common.generateUUID(), } },
initialize: function(attributes, options) { this.options = options; if (!this.id) { this.set('id', Common.generateUUID()); } this.listenTo(this.get('uploads'), 'add remove reset update', this.handleUploadUpdate); this.listenTo(this.get('uploads'), 'change:issues', this.handleIssuesUpdates); this.listenToDropzone(); },
defaults: function () { return { id: Common.generateUUID(), title: 'Untitled List', 'list.cql': '', 'list.icon': 'folder', 'list.bookmarks': [], query: undefined }; },