Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
cd5adcf7
Commit
cd5adcf7
authored
Jul 16, 2012
by
hass
Committed by
tim.plunkett
Oct 21, 2012
Browse files
Issue
#1555260
by hass: Fixed addDisplayDropdown button is not translatable.
parent
aed3ef2f
Changes
1
Show whitespace changes
Inline
Side-by-side
js/views-admin.js
View file @
cd5adcf7
...
...
@@ -229,7 +229,7 @@ Drupal.behaviors.viewsUiRenderAddViewButton.attach = function (context, settings
if
(
!
$menu
.
length
)
{
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
();
$displayButtons
.
appendTo
(
$addDisplayDropdown
.
find
(
'
.action-list
'
)).
wrap
(
'
<li>
'
)
.
parent
().
first
().
addClass
(
'
first
'
).
end
().
last
().
addClass
(
'
last
'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment