diff --git a/module/gitlab/js/browsegroup.ui.js b/module/gitlab/js/browsegroup.ui.js index a63105cb7e..9037d12bcf 100644 --- a/module/gitlab/js/browsegroup.ui.js +++ b/module/gitlab/js/browsegroup.ui.js @@ -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>*'}); } diff --git a/module/gitlab/js/browseproject.ui.js b/module/gitlab/js/browseproject.ui.js index 436323cf1d..26f446ac68 100644 --- a/module/gitlab/js/browseproject.ui.js +++ b/module/gitlab/js/browseproject.ui.js @@ -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>*'}); } diff --git a/module/gitlab/js/browsetag.ui.js b/module/gitlab/js/browsetag.ui.js index 8f532ee3ac..f68011362c 100644 --- a/module/gitlab/js/browsetag.ui.js +++ b/module/gitlab/js/browsetag.ui.js @@ -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>*'}); } diff --git a/module/gitlab/js/browseuser.ui.js b/module/gitlab/js/browseuser.ui.js index 3d1453d99d..eeb57401ec 100644 --- a/module/gitlab/js/browseuser.ui.js +++ b/module/gitlab/js/browseuser.ui.js @@ -1,4 +1,4 @@ -function searchUser() +window.searchUser = function() { loadPage({method:'post', data: {keyword: $('#keyword').val()}, target: '#table-gitlab-browseuser>*'}); } diff --git a/module/gitlab/ui/browsegroup.html.php b/module/gitlab/ui/browsegroup.html.php index f542e43f10..ca526c297f 100644 --- a/module/gitlab/ui/browsegroup.html.php +++ b/module/gitlab/ui/browsegroup.html.php @@ -71,6 +71,7 @@ featureBar ( set::id('searchForm'), set::actions(array()), + set::ajax(array('beforeSubmit' => jsRaw('() => {searchGroup(); return false;}'))), formRow ( input diff --git a/module/gitlab/ui/browseproject.html.php b/module/gitlab/ui/browseproject.html.php index 092a30ed13..9491f3b692 100644 --- a/module/gitlab/ui/browseproject.html.php +++ b/module/gitlab/ui/browseproject.html.php @@ -72,6 +72,7 @@ featureBar ( set::id('searchForm'), set::actions(array()), + set::ajax(array('beforeSubmit' => jsRaw('() => {searchProject(); return false;}'))), formRow ( input diff --git a/module/gitlab/ui/browsetag.html.php b/module/gitlab/ui/browsetag.html.php index 943997a858..55a8830a73 100644 --- a/module/gitlab/ui/browsetag.html.php +++ b/module/gitlab/ui/browsetag.html.php @@ -30,6 +30,7 @@ detailHeader setID('searchForm'), setClass('ml-4'), set::actions(array()), + set::ajax(array('beforeSubmit' => jsRaw('() => {search(); return false;}'))), formRow ( input diff --git a/module/gitlab/ui/browseuser.html.php b/module/gitlab/ui/browseuser.html.php index 5077c8b032..34990fb97e 100644 --- a/module/gitlab/ui/browseuser.html.php +++ b/module/gitlab/ui/browseuser.html.php @@ -59,6 +59,7 @@ featureBar ( set::id('searchForm'), set::actions(array()), + set::ajax(array('beforeSubmit' => jsRaw('() => {searchUser(); return false;}'))), formRow ( input