Update to Drupal 8.0.0-beta15. For more information, see: https://www.drupal.org/node/2563023
This commit is contained in:
parent
2720a9ec4b
commit
f3791f1da3
1898 changed files with 54300 additions and 11481 deletions
|
@ -17,15 +17,16 @@
|
|||
attach: function (context) {
|
||||
var $form = $(context).find('[data-drupal-selector="field-ui-field-storage-add-form"]').once('field_ui_add');
|
||||
if ($form.length) {
|
||||
// Add a few 'form-required' css classes here. We can not use the Form
|
||||
// API '#required' property because both label elements for "add new"
|
||||
// and "re-use existing" can never be filled and submitted at the same
|
||||
// time. The actual validation will happen server-side.
|
||||
// Add a few 'js-form-required' and 'form-required' css classes here.
|
||||
// We can not use the Form API '#required' property because both label
|
||||
// elements for "add new" and "re-use existing" can never be filled and
|
||||
// submitted at the same time. The actual validation will happen
|
||||
// server-side.
|
||||
$form.find(
|
||||
'.form-item-label label,' +
|
||||
'.form-item-field-name label,' +
|
||||
'.form-item-existing-storage-label label')
|
||||
.addClass('form-required');
|
||||
.addClass('js-form-required form-required');
|
||||
|
||||
var $newFieldType = $form.find('select[name="new_storage_type"]');
|
||||
var $existingStorageName = $form.find('select[name="existing_storage_name"]');
|
||||
|
|
Reference in a new issue