Skip to content
Snippets Groups Projects
Commit 66b28910 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #1303412 by nod_, droplet: Fixed 'Manage display' : Cannot drag in or out of 'Hidden'.

parent d2d67960
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -175,7 +175,7 @@ Drupal.fieldUIOverview = {
var row = dragObject.rowObject.element;
var $row = $(row);
var rowHandler = $row.data('fieldUIRowHandler');
if (typeof rowHandler === 'undefined') {
if (typeof rowHandler !== 'undefined') {
var regionRow = $row.prevAll('tr.region-message').get(0);
var region = regionRow.className.replace(/([^ ]+[ ]+)*region-([^ ]+)-message([ ]+[^ ]+)*/, '$2');
......@@ -330,7 +330,7 @@ Drupal.fieldUIDisplayOverview.field.prototype = {
if (currentValue === 'hidden') {
// Restore the formatter back to the default formatter. Pseudo-fields do
// not have default formatters, we just return to 'visible' for those.
value = (typeof this.defaultFormatter !== 'undefined') ? this.defaultFormatter : 'visible';
value = (typeof this.defaultFormatter !== 'undefined') ? this.defaultFormatter : this.$formatSelect.find('option').val();
}
}
else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment