Commit 66b28910 authored by webchick's avatar webchick

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

parent d2d67960
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment