ready for release v1.3.0
* add arrow to active colum header * update docu
This commit is contained in:
parent
4e47ba7367
commit
2dcf9a93e2
5
sortt.js
5
sortt.js
@ -4,7 +4,7 @@
|
|||||||
@License MIT
|
@License MIT
|
||||||
@Author 6543
|
@Author 6543
|
||||||
@Repository https://gitea.com/6543/gitea_sortt
|
@Repository https://gitea.com/6543/gitea_sortt
|
||||||
@Version 1.2.1
|
@Version 1.3.0
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -87,7 +87,7 @@ if(!window.jQuery) {
|
|||||||
console.log("sortt.js: ERROR no jQuery found!");
|
console.log("sortt.js: ERROR no jQuery found!");
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
//use JQuery to bind event on each <th> with a "data-sortt" attribute
|
//use JQuery to go throu each table header with "data-sortt" attribute
|
||||||
$('th').each(function() {
|
$('th').each(function() {
|
||||||
//if data attribute sortt is set
|
//if data attribute sortt is set
|
||||||
if ($(this)[0].dataset.sortt) {
|
if ($(this)[0].dataset.sortt) {
|
||||||
@ -108,4 +108,5 @@ if(!window.jQuery) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user