* Adjust dtable sort init.

This commit is contained in:
caoyanyi
2023-11-06 11:13:35 +08:00
parent 9a52fee2dc
commit de09522cfc
8 changed files with 7 additions and 48 deletions
-8
View File
@@ -1,11 +1,3 @@
window.createSortLink = function(col)
{
var sort = col.name + '_asc';
if(sort == orderBy) sort = col.name + '_desc';
return sortLink.replace('{orderBy}', sort);
}
window.renderCell = function(result, {col, row})
{
if(col.name === 'name')
-8
View File
@@ -9,14 +9,6 @@ window.renderCell = function(result, {col, row})
return result;
};
window.createSortLink = function(col)
{
var sort = col.name + '_asc';
if(sort == orderBy) sort = col.name + '_desc';
return sortLink.replace('{orderBy}', sort);
}
function searchGroup()
{
loadPage({method:'post', data: {keyword: $('#keyword').val()}, target: '#table-gitlab-browsegroup>*'});
-8
View File
@@ -1,11 +1,3 @@
window.createSortLink = function(col)
{
var sort = col.name + '_asc';
if(sort == orderBy) sort = col.name + '_desc';
return sortLink.replace('{orderBy}', sort);
}
window.renderCell = function(result, {col, row})
{
if(col.name === 'star')
-8
View File
@@ -1,11 +1,3 @@
window.createSortLink = function(col)
{
var sort = col.name + '_asc';
if(sort == orderBy) sort = col.name + '_desc';
return sortLink.replace('{orderBy}', sort);
}
function searchUser()
{
loadPage({method:'post', data: {keyword: $('#keyword').val()}, target: '#table-gitlab-browseuser>*'});