Skip to content

Commit d71d20a

Browse files
committed
move tablesorter code
1 parent 03749d6 commit d71d20a

1 file changed

Lines changed: 13 additions & 11 deletions

File tree

assets/js/main.js

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,6 @@ $(function() {
55
// make code pretty
66
window.prettyPrint && prettyPrint();
77

8-
/*----------- BEGIN TABLESORTER CODE -------------------------*/
9-
/* required jquery.tablesorter.min.js*/
10-
$(".sortableTable").tablesorter();
11-
/*----------- END TABLESORTER CODE -------------------------*/
12-
13-
14-
158
$('.minimize-box').on('click', function(e){
169
e.preventDefault();
1710
var $icon = $(this).children('i');
@@ -270,7 +263,11 @@ function dashboard() {
270263
}
271264
});
272265
/*----------- END CHART CODE -------------------------*/
273-
266+
267+
/*----------- BEGIN TABLESORTER CODE -------------------------*/
268+
/* required jquery.tablesorter.min.js*/
269+
$(".sortableTable").tablesorter();
270+
/*----------- END TABLESORTER CODE -------------------------*/
274271

275272
}
276273
/*--------------------------------------------------------
@@ -825,6 +822,11 @@ function formWizard() {
825822
BEGIN TABLES.HTML SCRIPTS
826823
---------------------------------------------------------*/
827824
function metisTable() {
825+
826+
/*----------- BEGIN TABLESORTER CODE -------------------------*/
827+
/* required jquery.tablesorter.min.js*/
828+
$(".sortableTable").tablesorter();
829+
/*----------- END TABLESORTER CODE -------------------------*/
828830

829831
/*----------- BEGIN datatable CODE -------------------------*/
830832
$('#dataTable').dataTable({
@@ -838,15 +840,15 @@ function metisTable() {
838840

839841
/*----------- BEGIN action table CODE -------------------------*/
840842
$('#actionTable button.remove').on('click', function() {
841-
$(this).closest('tr').remove();
843+
$(this).closest('tr').remove();
842844
});
843845
$('#actionTable button.edit').on('click', function() {
844846
$('#editModal').modal({
845847
show: true
846848
});
847849
var val1 = $(this).closest('tr').children('td').eq(1),
848-
val2 = $(this).closest('tr').children('td').eq(2),
849-
val3 = $(this).closest('tr').children('td').eq(3);
850+
val2 = $(this).closest('tr').children('td').eq(2),
851+
val3 = $(this).closest('tr').children('td').eq(3);
850852
$('#editModal #fName').val(val1.html());
851853
$('#editModal #lName').val(val2.html());
852854
$('#editModal #uName').val(val3.html());

0 commit comments

Comments
 (0)