From dd580dc8764c7279ed60ee80895f8159ea524ea3 Mon Sep 17 00:00:00 2001 From: "k.krzton" Date: Thu, 31 Mar 2016 11:42:00 +0200 Subject: [PATCH] Check for exisitng thead. Use getElementsByTag instead of findOne - quirks support. --- plugins/table/dialogs/table.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/table/dialogs/table.js b/plugins/table/dialogs/table.js index e3af4cbe457..ad22566aaa0 100755 --- a/plugins/table/dialogs/table.js +++ b/plugins/table/dialogs/table.js @@ -157,7 +157,7 @@ // Should we make a ? var headers = info.selHeaders; if ( !table.$.tHead && ( headers == 'row' || headers == 'both' ) ) { - var thead = table.findOne( 'thead' ); + var thead = table.getElementsByTag( 'thead' ).getItem( 0 ); tbody = table.getElementsByTag( 'tbody' ).getItem( 0 ); var theRow = tbody.getElementsByTag( 'tr' ).getItem( 0 );