From 39e9744f046b556674f171a4e443e3ca7cab6fe4 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Mon, 3 Sep 2012 09:05:27 -0400 Subject: [PATCH] Title changing --- js/tbl_chart.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/js/tbl_chart.js b/js/tbl_chart.js index 7c78defd4d..6223bbaa52 100644 --- a/js/tbl_chart.js +++ b/js/tbl_chart.js @@ -83,8 +83,11 @@ $(document).ready(function() { }); $('input[name="chartTitle"]').keyup(function() { var title = $(this).attr('value'); - if (title.length == 0) title = ' '; - //currentChart.setTitle({ text: title }); + if (title.length == 0) { + title = ' '; + } + currentSettings.title = $('input[name="chartTitle"]').val(); + drawChart(); }); $('input[name="chartTitle"]').blur(function() { if ($(this).val() != temp_chart_title) {