From 14cc6df5f90c2ee75df83852677f5d4f21a6b176 Mon Sep 17 00:00:00 2001 From: Simey Lameze Date: Wed, 3 Aug 2016 09:42:27 +0800 Subject: [PATCH] MDL-55355 core: Fix incorrect chart link selector --- lib/templates/chart.mustache | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/templates/chart.mustache b/lib/templates/chart.mustache index 40736dde947..34867354670 100644 --- a/lib/templates/chart.mustache +++ b/lib/templates/chart.mustache @@ -40,14 +40,14 @@ require([ uniqid = "{{uniqid}}", chartArea = $('#chart-area-' + uniqid), chartImage = chartArea.find('.chart-image'), - chartTable = chartArea.find('.chart-table-data'); + chartTable = chartArea.find('.chart-table-data'), chartLink = chartArea.find('.chart-table-expand a'); Builder.make(data).then(function(ChartInst) { new Output(chartImage, ChartInst); new OutputTable(chartTable, ChartInst); }); - chartArea.find('.chart-table-expand a').first().click(function(e) { + chartLink.on('click', function(e) { e.preventDefault(); if (chartTable.is(':visible')) { chartTable.hide(); -- 2.11.4.GIT