no full form button for create and select

This commit is contained in:
Yuri Kuznetsov
2014-04-17 11:18:55 +03:00
parent 983e409249
commit 81f7cd0756
2 changed files with 7 additions and 3 deletions
+5 -1
View File
@@ -68,8 +68,12 @@ Espo.define('Views.EditModal', 'Views.Modal', function (Dep) {
}.bind(this)
});
}
if ('fullFormButton' in this.options) {
this.fullFormButton = this.options.fullFormButton;
}
if (this.options.fullFormButton !== false && this.fullFormButton) {
if (this.fullFormButton) {
this.buttons.push({
name: 'fullForm',
text: this.getLanguage().translate('Full Form'),
+2 -2
View File
@@ -104,7 +104,7 @@ Espo.define('Views.SelectModal', 'Views.Modal', function (Dep) {
this.createView('list', 'Record.List', {
collection: collection,
el: this.containerSelector + ' .list-container',
selectable: true,
selectable: true,
checkboxes: this.multiple,
actions: false,
rowButtons: false,
@@ -131,7 +131,7 @@ Espo.define('Views.SelectModal', 'Views.Modal', function (Dep) {
this.notify('Loading...');
this.createView('quickCreate', 'EditModal', {
scope: this.scope,
fullForm: false,
fullFormButton: false,
}, function (view) {
view.once('after:render', function () {
self.notify(false);