right typo & add missing ";"

This commit is contained in:
6543 2019-09-18 10:32:11 +02:00
parent ff002275ca
commit d6beaa8664
Signed by: 6543
GPG Key ID: A1CA74D27FD13271
1 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ if(!window.jQuery) {
//use JQuery to bind event on each <th> with a "data-sortt" attribute //use JQuery to bind event on each <th> with a "data-sortt" attribute
$('th').each(function() { $('th').each(function() {
if ($(this)[0].dataset.sortt) $(this).on('click', function(e) { 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(","); data = data.split(",");
sortt(data[0],data[1],data[2]); sortt(data[0],data[1],data[2]);
}); });
@ -28,7 +28,7 @@ if(!window.jQuery) {
window.sortt=function(normsort,revsort,isdefault){ window.sortt=function(normsort,revsort,isdefault){
//sortTable [normsort] (revsort) (isdefault) //sortTable [normsort] (revsort) (isdefault)


//normsort is needet //normsort is needed
if (!(normsort)) return false; if (!(normsort)) return false;


//default values of optinal parameters //default values of optinal parameters