edit_user_request.js.html
About this file
This file contains a script that handles editing a user's credentials. A user's permissions are determined by checking with what permissions have been selected. The script also checks to see if the permissions have changed at all.
Code Issues
- 
        Recommend providing docstrings for 
setPermissions(perms),setCurrentPermissions(), andsetCurrentPointOfContact() - 
        Recommend adding a comment stating what does 0 mean for 
if role.val() === 0. 
Code Check Report
                        
                   
                Documentation drawn from source code
     $(function () {
          function setPermissions(perms) {
               permission.children().each(function () {
          function setCurrentPermissions() {
          function setCurrentPointOfContact() {
          role.change(function () {
                         success: function (data) {
          permission.find('option').mousedown(function(e) {
          user.change(function () {
          next.click(function () {
                         .every(function(item, index) {
                         success: function (data) {
          prev.click(function () {
          submit.click(function(e) {
                    success: function(){