| 124 | | |
|---|
| 125 | | var orig_roleName = "<mt:var name="name" escape="html">"; |
|---|
| 126 | | var roleName = getByID('name').value; |
|---|
| 127 | | if(permsChanged == "yes") { |
|---|
| 128 | | if(roleName == orig_roleName) { |
|---|
| 129 | | doSubmitFormConfirm(document.role, 'save_role', '<__trans phrase="You have changed the privileges for this role. This will alter what it is that the users associated with this role will be able to do. If you prefer, you can save this role with a different name. Otherwise, be aware of any changes to users with this role.">'); |
|---|
| | 125 | var orig_roleName = "<mt:var name="name" escape="html">"; |
|---|
| | 126 | var roleName = getByID('name').value; |
|---|
| | 127 | if(permsChanged == "yes") { |
|---|
| | 128 | if(roleName == orig_roleName) { |
|---|
| | 129 | return doSubmitFormConfirm(document.role, 'save_role', '<__trans phrase="You have changed the privileges for this role. This will alter what it is that the users associated with this role will be able to do. If you prefer, you can save this role with a different name. Otherwise, be aware of any changes to users with this role.">'); |
|---|
| | 130 | } else { |
|---|
| | 131 | doSubmitForm(document.role, 'save_role'); |
|---|
| | 132 | } |
|---|