diff --git a/sortt.js b/sortt.js index e181ec2..75a4f0e 100644 --- a/sortt.js +++ b/sortt.js @@ -56,12 +56,15 @@ if(!window.jQuery) { $('th').each(function() { //if data attribute sortt is set if ($(this)[0].dataset.sortt) { + //get data + var data = $(this)[0].dataset.sortt; + data = data.split(","); + //add onclick event $(this).on('click', function() { - var data = $(this)[0].dataset.sortt; - data = data.split(","); sortt(data[0],data[1],data[2]); }); + //add arrow to colume // - place holder - }