Commit cd5adcf7 authored by hass's avatar hass Committed by tim.plunkett
Browse files

Issue #1555260 by hass: Fixed addDisplayDropdown button is not translatable.

parent aed3ef2f
...@@ -229,7 +229,7 @@ Drupal.behaviors.viewsUiRenderAddViewButton.attach = function (context, settings ...@@ -229,7 +229,7 @@ Drupal.behaviors.viewsUiRenderAddViewButton.attach = function (context, settings
if (!$menu.length) { if (!$menu.length) {
return; return;
} }
var $addDisplayDropdown = $('<li class="add"><a href="#"><span class="icon add"></span>Add</a><ul class="action-list" style="display:none;"></ul></li>'); var $addDisplayDropdown = $('<li class="add"><a href="#"><span class="icon add"></span>' + Drupal.t('Add') + '</a><ul class="action-list" style="display:none;"></ul></li>');
var $displayButtons = $menu.nextAll('input.add-display').detach(); var $displayButtons = $menu.nextAll('input.add-display').detach();
$displayButtons.appendTo($addDisplayDropdown.find('.action-list')).wrap('<li>') $displayButtons.appendTo($addDisplayDropdown.find('.action-list')).wrap('<li>')
.parent().first().addClass('first').end().last().addClass('last'); .parent().first().addClass('first').end().last().addClass('last');
......
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