in public/src/js/models/collections/article.js [399:428]
Article.prototype.open = function(article, evt) {
if (this.uneditable) { return; }
if (this.meta.supporting) { this.meta.supporting.items().forEach(function(sublink) { sublink.close(); }); }
if (!this.state.isOpen()) {
if (this.editors().length === 0) {
this.editors(metaFields.map(function (field) {
return createEditor(field, this, metaFields);
}, this).filter(Boolean));
}
this.state.isOpen(true);
mediator.emit(
'ui:open',
_.chain(this.editors())
.filter(function(editor) { return editor.type === 'text' && editor.displayEditor(); })
.map(function(editor) { return editor.meta; })
.first()
.value(),
this,
this.front
);
} else {
mediator.emit('ui:open', null, null, this.front);
}
if ($(evt.target).hasClass('allow-default-click')) {
return true;
}
};