Added jquery resize plugin to enable the set of the resizing event directly on the element.

This commit is contained in:
Alexis Lahouze
2013-01-12 19:16:48 +01:00
parent 68c487b91d
commit 6f36d7970f
3 changed files with 12 additions and 1 deletions

View File

@ -376,6 +376,7 @@ drawChart = function(entries, element) {
// clear previous chart
$(element).html("");
$(element).resize();
// plot chart
jqplot = $.jqplot(element.id, chartValues, {
@ -410,7 +411,7 @@ drawChart = function(entries, element) {
}}],
});//*/
$(window).resize(function() {
$(element).resize(function() {
jqplot.replot({resetAxes: true});
});
}