Converted the PMA_sort_table into a jQuery function as there was a race condition caused due to simultaneous adding of a row and sorting of the table

This commit is contained in:
ninadsp
2010-08-03 21:01:20 +05:30
parent 3ab3b35a76
commit a7f2cbd2ba
2 changed files with 46 additions and 34 deletions

View File

@@ -127,7 +127,7 @@ function appendNewUser(new_user_string, new_user_initial, new_user_initial_strin
.end();
//Let us sort the table alphabetically
PMA_sort_table($("#usersForm").find('tbody'), 'label');
$("#usersForm").find('tbody').PMA_sort_table('label');
$("#initials_table").find('td:contains('+new_user_initial+')')
.html(new_user_initial_string);