Improve contactgroupChangeMember() javascript function
- Add usage of new /group/123/add|remove/123 URL - Add checkbox revert in case of error
This commit is contained in:
parent
6376293218
commit
0a58e4c952
4 changed files with 20 additions and 6 deletions
|
@ -17,7 +17,7 @@
|
|||
{{if $group.cid}}
|
||||
<input type="checkbox"
|
||||
class="{{if $group.selected}}ticked{{else}}unticked {{/if}} action"
|
||||
onclick="contactgroupChangeMember('{{$group.id}}','{{$group.cid}}');return true;"
|
||||
onclick="return contactgroupChangeMember(this, '{{$group.id}}','{{$group.cid}}');"
|
||||
{{if $group.ismember}}checked="checked"{{/if}}
|
||||
/>
|
||||
{{/if}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue