move data var so other routines also can use it

This commit is contained in:
6543 2019-09-18 21:32:52 +02:00
parent 4720a6d57c
commit ae60f10523
Signed by: 6543
GPG Key ID: A1CA74D27FD13271
1 changed files with 5 additions and 2 deletions

View File

@ -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 -
}