* [task#128375,done,0.5h] adjust search block event for gitlab.

This commit is contained in:
caoyanyi
2024-09-14 11:27:51 +08:00
committed by 田淑杰
parent 6dde34a9fc
commit a5abc9b95e
8 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ window.renderCell = function(result, {col, row})
return result;
};
function searchGroup()
window.searchGroup = function()
{
loadPage({method:'post', data: {keyword: $('#keyword').val()}, target: '#table-gitlab-browsegroup>*'});
}
+1 -1
View File
@@ -10,7 +10,7 @@ window.renderCell = function(result, {col, row})
return result;
};
function searchProject()
window.searchProject = function()
{
loadPage({method:'post', data: {keyword: $('#keyword').val()}, target: '#table-gitlab-browseproject>*'});
}
+1 -1
View File
@@ -8,7 +8,7 @@ window.renderCell = function(result, info)
return result;
}
function search()
window.search = function()
{
loadPage({method:'post', data: {keyword: $('#keyword').val()}, target: '#table-gitlab-browseproject>*'});
}
+1 -1
View File
@@ -1,4 +1,4 @@
function searchUser()
window.searchUser = function()
{
loadPage({method:'post', data: {keyword: $('#keyword').val()}, target: '#table-gitlab-browseuser>*'});
}
+1
View File
@@ -71,6 +71,7 @@ featureBar
(
set::id('searchForm'),
set::actions(array()),
set::ajax(array('beforeSubmit' => jsRaw('() => {searchGroup(); return false;}'))),
formRow
(
input
+1
View File
@@ -72,6 +72,7 @@ featureBar
(
set::id('searchForm'),
set::actions(array()),
set::ajax(array('beforeSubmit' => jsRaw('() => {searchProject(); return false;}'))),
formRow
(
input
+1
View File
@@ -30,6 +30,7 @@ detailHeader
setID('searchForm'),
setClass('ml-4'),
set::actions(array()),
set::ajax(array('beforeSubmit' => jsRaw('() => {search(); return false;}'))),
formRow
(
input
+1
View File
@@ -59,6 +59,7 @@ featureBar
(
set::id('searchForm'),
set::actions(array()),
set::ajax(array('beforeSubmit' => jsRaw('() => {searchUser(); return false;}'))),
formRow
(
input