diff options
author | Isaac Bennetch <bennetch@gmail.com> | 2014-07-21 23:26:53 +0400 |
---|---|---|
committer | Isaac Bennetch <bennetch@gmail.com> | 2014-07-21 23:26:53 +0400 |
commit | 3a215f86c8bc436383f801dad77ebc9495ef28b2 (patch) | |
tree | ecc10ffc621cc0e46b122d4f797732d490bf08f5 /js | |
parent | feadcdae7e443afb79738fc23b289a833ae4327c (diff) | |
parent | 04a3a7073b631c8ef06940fc972907e59b39a3b8 (diff) |
Merge pull request #1289 from D-storm/FR-1488
RFE-1488/781: User privilege tab not shown in all relevant cases
Diffstat (limited to 'js')
-rw-r--r-- | js/server_privileges.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/js/server_privileges.js b/js/server_privileges.js index c77cc521c7..b6587ad936 100644 --- a/js/server_privileges.js +++ b/js/server_privileges.js @@ -41,8 +41,10 @@ function checkAddUser(the_form) */ function appendNewUser(new_user_string, new_user_initial, new_user_initial_string) { + if (!$('#usersForm').length) { + return; + } //Append the newly retrieved user to the table now - //Calculate the index for the new row var $curr_last_row = $("#usersForm").find('tbody').find('tr:last'); var $curr_first_row = $("#usersForm").find('tbody').find('tr:first'); |