comparison core/modules/quickedit/js/models/FieldModel.js @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents 4c8ae668cc8c
children
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
70 }, 70 },
71 findOtherViewModes: function findOtherViewModes() { 71 findOtherViewModes: function findOtherViewModes() {
72 var currentField = this; 72 var currentField = this;
73 var otherViewModes = []; 73 var otherViewModes = [];
74 Drupal.quickedit.collections.fields.where({ logicalFieldID: currentField.get('logicalFieldID') }).forEach(function (field) { 74 Drupal.quickedit.collections.fields.where({ logicalFieldID: currentField.get('logicalFieldID') }).forEach(function (field) {
75 if (field === currentField) {} else if (field.get('fieldID') === currentField.get('fieldID')) {} else { 75 if (field !== currentField && field.get('fieldID') !== currentField.get('fieldID')) {
76 otherViewModes.push(field.getViewMode()); 76 otherViewModes.push(field.getViewMode());
77 } 77 }
78 }); 78 });
79 return otherViewModes; 79 return otherViewModes;
80 } 80 }
81 }, { 81 }, {
82 states: ['inactive', 'candidate', 'highlighted', 'activating', 'active', 'changed', 'saving', 'saved', 'invalid'], 82 states: ['inactive', 'candidate', 'highlighted', 'activating', 'active', 'changed', 'saving', 'saved', 'invalid'],