move data var so other routines also can use it
This commit is contained in:
parent
4720a6d57c
commit
ae60f10523
7
sortt.js
7
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 -
|
||||
}
|
||||
|
Reference in New Issue
Block a user