BUG-9938 When trying to add a user in a group, and search the specific user, it just appears for one second, then it disappear.
I fixed the Search function in file 'workflow/engine/templates/groups/groups Members.js', it was changing the page after the search.
This commit is contained in:
@@ -486,16 +486,23 @@ RemoveAllUsersAction = function(){
|
|||||||
//Function DoSearch Available
|
//Function DoSearch Available
|
||||||
DoSearchA = function(){
|
DoSearchA = function(){
|
||||||
numPage = parseInt(bbarpagingAvailable.getPageData().activePage);
|
numPage = parseInt(bbarpagingAvailable.getPageData().activePage);
|
||||||
availableGrid.store.load(
|
/*availableGrid.store.load(
|
||||||
{params: {textFilter: searchTextA.getValue()},
|
{params: {textFilter: searchTextA.getValue()},
|
||||||
callback: function (r, options, success) {
|
callback: function (r, options, success) {
|
||||||
total = parseInt(bbarpagingAvailable.getPageData().total);
|
total = parseInt(bbarpagingAvailable.getPageData().total);
|
||||||
if (((numPage-1)*pageSize) >= total) {
|
if (((numPage)*pageSize) >= total) {
|
||||||
numPage--;
|
numPage--;
|
||||||
}
|
}
|
||||||
availableGrid.getBottomToolbar().changePage(getPageData().activePage);
|
availableGrid.getBottomToolbar().changePage(getPageData().activePage);
|
||||||
}
|
}
|
||||||
});
|
});*/
|
||||||
|
availableGrid.store.setBaseParam( 'textFilter', searchTextA.getValue());
|
||||||
|
availableGrid.store.load();
|
||||||
|
total = parseInt(bbarpagingAvailable.getPageData().total);
|
||||||
|
if (((numPage-1)*pageSize) >= total) {
|
||||||
|
numPage--;
|
||||||
|
}
|
||||||
|
availableGrid.getBottomToolbar().changePage(numPage);
|
||||||
};
|
};
|
||||||
|
|
||||||
//Function DoSearch Assigned
|
//Function DoSearch Assigned
|
||||||
@@ -506,6 +513,7 @@ DoSearchP = function(){
|
|||||||
//Load Grid By Default Available Members
|
//Load Grid By Default Available Members
|
||||||
GridByDefaultA = function(){
|
GridByDefaultA = function(){
|
||||||
searchTextA.reset();
|
searchTextA.reset();
|
||||||
|
availableGrid.store.setBaseParam( 'textFilter', '');
|
||||||
availableGrid.store.load();
|
availableGrid.store.load();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user