← All changes
|
includes/admin/agent-settings/class-wpsc-agent-settings.php
+2
-2
3.4.4
→
3.5.4
View file →
| @@ -100,10 +100,10 @@ | ||
| 100 | 100 | <td><?php echo esc_attr( $agent->name ); ?></td> |
| 101 | 101 | <td><?php echo esc_attr( $agent->customer->email ); ?></td> |
| 102 | 102 | <td><?php echo esc_attr( $roles[ $agent->role ]['label'] ); ?></td> |
| 103 | 103 | <td> |
| 104 | - <a href="javascript:wpsc_get_edit_agent(<?php echo esc_attr( $agent->id ); ?>, '<?php echo esc_attr( wp_create_nonce( 'wpsc_get_edit_agent' ) ); ?>')"><?php esc_attr_e( 'Edit', 'supportcandy' ); ?></a> | | |
| 105 | - <a href="javascript:wpsc_get_delete_agent(<?php echo esc_attr( $agent->id ); ?>, '<?php echo esc_attr( wp_create_nonce( 'wpsc_get_delete_agent' ) ); ?>' )"><?php esc_attr_e( 'Delete', 'supportcandy' ); ?></a> | |
| 104 | + <span class="wpsc-link" onclick="wpsc_get_edit_agent(<?php echo esc_attr( $agent->id ); ?>, '<?php echo esc_attr( wp_create_nonce( 'wpsc_get_edit_agent' ) ); ?>')"><?php esc_attr_e( 'Edit', 'supportcandy' ); ?></span> | | |
| 105 | + <span class="wpsc-link" onclick="wpsc_get_delete_agent(<?php echo esc_attr( $agent->id ); ?>, '<?php echo esc_attr( wp_create_nonce( 'wpsc_get_delete_agent' ) ); ?>' )"><?php esc_attr_e( 'Delete', 'supportcandy' ); ?></span> | |
| 106 | 106 | </td> |
| 107 | 107 | </tr> |
| 108 | 108 | <?php |
| 109 | 109 | } |