summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-01-13 23:13:18 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-01-13 23:13:18 +0000
commit6a5532a2589463de93cc96ce6b71a7af94d39d9b (patch)
treed49d3fdf63281edd314c0f016f7ba64f4f3eb1d8 /modules
parent0c79ed846d2763ca0152bba3724e0175f3f3eb7a (diff)
downloadbrdo-6a5532a2589463de93cc96ce6b71a7af94d39d9b.tar.gz
brdo-6a5532a2589463de93cc96ce6b71a7af94d39d9b.tar.bz2
#683128 by aspilicious: Fixed Multiple 'add to shortcut' links appearing when adding fields.
Diffstat (limited to 'modules')
-rw-r--r--modules/overlay/overlay-parent.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/overlay/overlay-parent.js b/modules/overlay/overlay-parent.js
index 93c82b737..43ab8f7f4 100644
--- a/modules/overlay/overlay-parent.js
+++ b/modules/overlay/overlay-parent.js
@@ -417,6 +417,8 @@ Drupal.overlay.bindChild = function (iframeWindow, isClosing) {
// Add a title attribute to the iframe for accessibility.
self.$iframe.attr('title', Drupal.t('@title dialog', { '@title': iframeTitle }));
+ // Remove any existing shortcut button markup in the title section.
+ self.$dialogTitlebar.find('.add-or-remove-shortcuts').remove();
// If the shortcut add/delete button exists, move it to the dialog title.
var $addToShortcuts = self.$iframeWindow('.add-or-remove-shortcuts');
if ($addToShortcuts.length) {
@@ -428,6 +430,8 @@ Drupal.overlay.bindChild = function (iframeWindow, isClosing) {
self.$dialogTitlebar.find('.ui-dialog-title').after($addToShortcuts);
}
+ // Remove any existing tabs in the title section.
+ self.$dialogTitlebar.find('ul').remove();
// If there are tabs in the page, move them to the titlebar.
var $tabs = self.$iframeWindow('ul.primary');
if ($tabs.length) {