Sha256: cee81251eed3129f21c0f614b51f2d70da4359b4c9883f946c7222656150e17a
Contents?: true
Size: 1.03 KB
Versions: 4
Compression:
Stored size: 1.03 KB
Contents
$(function() { if (!$('#select-all-items').length) { return false; } $('#select-all-items').on('change', function() { var $this = $(this).children(':checkbox').get(0); $(this).parents('li') .siblings() .find(':checkbox') .prop('checked', $this.checked) .val($this.checked) .change(); }); function drawItemsListSparklines(){ $(".items-list-page .sparkline").each(function() { var type = $(this).data('type'); // Generate random data var data = []; for (var i = 0; i < 17; i++) { data.push(Math.round(100 * Math.random())); } $(this).sparkline(data, { barColor: config.chart.colorPrimary.toString(), height: $(this).height(), type: type }); }); } drawItemsListSparklines(); $(document).on("themechange", function(){ drawItemsListSparklines(); }); });
Version data entries
4 entries across 4 versions & 1 rubygems