aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/admin_users.tpl
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-09-16 21:56:26 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-09-16 21:56:26 -0700
commit4f1d579ba1618732dc7b66f5dc5e4ba10be29e24 (patch)
tree6753f3c9323a6443b235a22c8a39d1029e278ffb /view/tpl/admin_users.tpl
parentc34d8286a397b8a80d28a9b1d13a297196e4c124 (diff)
parent4eb389f2d99a76215fc9be8e570b9df93ab4897a (diff)
downloadvolse-hubzilla-4f1d579ba1618732dc7b66f5dc5e4ba10be29e24.tar.gz
volse-hubzilla-4f1d579ba1618732dc7b66f5dc5e4ba10be29e24.tar.bz2
volse-hubzilla-4f1d579ba1618732dc7b66f5dc5e4ba10be29e24.zip
Merge https://github.com/redmatrix/hubzilla into pending_merge
Diffstat (limited to 'view/tpl/admin_users.tpl')
-rwxr-xr-xview/tpl/admin_users.tpl10
1 files changed, 5 insertions, 5 deletions
diff --git a/view/tpl/admin_users.tpl b/view/tpl/admin_users.tpl
index f372911a0..8a4b772a8 100755
--- a/view/tpl/admin_users.tpl
+++ b/view/tpl/admin_users.tpl
@@ -5,8 +5,8 @@
function confirm_delete_multi(){
return confirm("{{$confirm_delete_multi}}");
}
- function selectall(cls){
- $("."+cls).attr('checked','checked');
+ function toggle_selectall(cls){
+ $("."+cls).prop("checked", !$("."+cls).prop("checked"));
return false;
}
</script>
@@ -40,7 +40,7 @@
{{/foreach}}
</tbody>
</table>
- <div class="selectall"><a href="#" onclick="return selectall('pending_ckbx');">{{$select_all}}</a></div>
+ <div class="selectall"><a href="#" onclick="return toggle_selectall('pending_ckbx');">{{$select_all}}</a></div>
<div class="submit"><input type="submit" name="page_users_deny" value="{{$deny}}"> <input type="submit" name="page_users_approve" value="{{$approve}}"></div>
{{else}}
<p>{{$no_pending}}</p>
@@ -79,10 +79,10 @@
{{/foreach}}
</tbody>
</table>
- <div class="selectall"><a href="#" onclick="return selectall('users_ckbx');">{{$select_all}}</a></div>
+ <div class="selectall"><a href="#" onclick="return toggle_selectall('users_ckbx');">{{$select_all}}</a></div>
<div class="submit"><input type="submit" name="page_users_block" value="{{$block}}/{{$unblock}}"> <input type="submit" name="page_users_delete" value="{{$delete}}" onclick="return confirm_delete_multi()"></div>
{{else}}
NO USERS?!?
{{/if}}
</form>
-</div> \ No newline at end of file
+</div>