From db803482eb88fd133ef778e4c7ce2717ec9429de Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Wed, 2 May 2012 14:19:32 -0400 Subject: [PATCH] Bug #3522408 Edit view functionality broken --- js/tbl_structure.js | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/js/tbl_structure.js b/js/tbl_structure.js index 6b9e74bd32..2a931d206a 100644 --- a/js/tbl_structure.js +++ b/js/tbl_structure.js @@ -798,13 +798,16 @@ function moreOptsMenuResize() { // A hack for IE6 to prevent the after_field select element from being displayed on top of the dropdown by // positioning an iframe directly on top of it var $after_field = $("select[name='after_field']"); - $("iframe[class='IE_hack']") - .width($after_field.width()) - .height($after_field.height()) - .offset({ - top: $after_field.offset().top, - left: $after_field.offset().left - }); + // This dropdown is only present for a table, not for a view + if ($after_field.length) { + $("iframe[class='IE_hack']") + .width($after_field.width()) + .height($after_field.height()) + .offset({ + top: $after_field.offset().top, + left: $after_field.offset().left + }); + } // When "more" is hovered over, show the hidden actions $table.find("td.more_opts")