Merge stash

This commit is contained in:
Matthias Jentsch 2014-09-10 15:53:30 +02:00
parent 7aadad913e
commit e216ba6721

View File

@ -12,14 +12,12 @@
}; };
Sparkline.prototype.apply = function(el) { Sparkline.prototype.apply = function(el) {
var self = this, icinga = this.icinga;
$('span.sparkline', el).each(function(i, element) { $('span.sparkline', el).each(function(i, element) {
// read custom options // read custom options
var $spark = $(element); var $spark = $(element);
var labels = $spark.attr('labels').split('|'); var labels = $spark.attr('labels').split('|');
var formatted = $spark.attr('formatted').split('|'); var formatted = $spark.attr('formatted').split('|');
var tooltipChartTitle = $spark.attr('sparkSparklineChartTitle') || ''; var tooltipChartTitle = $spark.attr('sparkTooltipChartTitle') || '';
var format = $spark.attr('tooltipformat'); var format = $spark.attr('tooltipformat');
var hideEmpty = $spark.attr('hideEmptyLabel') === 'true'; var hideEmpty = $spark.attr('hideEmptyLabel') === 'true';
$spark.sparkline( $spark.sparkline(