From d6beaa86644f763434254a118aa9a4ee564b3f53 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Wed, 18 Sep 2019 10:32:11 +0200 Subject: [PATCH] right typo & add missing ";" --- sortt.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sortt.js b/sortt.js index 0c6c0bf..8f0d13a 100644 --- a/sortt.js +++ b/sortt.js @@ -17,7 +17,7 @@ if(!window.jQuery) { //use JQuery to bind event on each with a "data-sortt" attribute $('th').each(function() { if ($(this)[0].dataset.sortt) $(this).on('click', function(e) { - var data = $(this)[0].dataset.sortt + var data = $(this)[0].dataset.sortt; data = data.split(","); sortt(data[0],data[1],data[2]); }); @@ -28,7 +28,7 @@ if(!window.jQuery) { window.sortt=function(normsort,revsort,isdefault){ //sortTable [normsort] (revsort) (isdefault) - //normsort is needet + //normsort is needed if (!(normsort)) return false; //default values of optinal parameters