From 84c768878497b1bb091d1b14e275318b6a3415af Mon Sep 17 00:00:00 2001 From: Jo Michael Date: Thu, 12 Apr 2012 03:33:49 +0200 Subject: [PATCH] Fix broken grid editing in table browse mode --- js/tbl_structure.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/tbl_structure.js b/js/tbl_structure.js index 680f117f22..c7d4103e62 100644 --- a/js/tbl_structure.js +++ b/js/tbl_structure.js @@ -561,7 +561,7 @@ function moreOptsMenuResize() { var $table = $("table#tablestructure"); // don't use More menu if we're only showing icons and no text - if ($table.hasClass("PropertiesIconic")) { + if ($table.length == 0 || $table.hasClass("PropertiesIconic")) { return; }