Skip to content

Commit

Permalink
Charts - Initiate details polyfill - fix #6853
Browse files Browse the repository at this point in the history
  • Loading branch information
duboisp committed Jun 26, 2015
1 parent 22df6a2 commit 445c9ad
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/plugins/charts/charts.js
Original file line number Diff line number Diff line change
Expand Up @@ -710,13 +710,18 @@
* @method wrapTableIntoDetails
*/
function wrapTableIntoDetails() {
var $summary;

if ( !captionHtml.length ) {
return;
}

$summary = $( "<summary>" + captionHtml + i18nText.tableMention + "</summary>" );
$elm
.wrap( "<details/>" )
.before( "<summary>" + captionHtml + i18nText.tableMention + "</summary>" );
.before( $summary );

$summary.trigger( "wb-init.wb-details" );
}

function createContainer( withDimension ) {
Expand Down

0 comments on commit 445c9ad

Please sign in to comment.