aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/admin_users.tpl
diff options
context:
space:
mode:
authorHaakon Meland Eriksen <haakon.eriksen@far.no>2015-09-18 18:51:39 +0200
committerHaakon Meland Eriksen <haakon.eriksen@far.no>2015-09-18 18:51:39 +0200
commitce28760c2a7319f3cdc25c39a62582b722e91006 (patch)
tree802f64d3988fc14a277c79ee5192693a4202b502 /view/tpl/admin_users.tpl
parent438cb1d7e0f1518dd35a3a377dfd9a9fd885f80c (diff)
parent87c8cf489210136958d2e0b44e4c3ca48c1ff8af (diff)
downloadvolse-hubzilla-ce28760c2a7319f3cdc25c39a62582b722e91006.tar.gz
volse-hubzilla-ce28760c2a7319f3cdc25c39a62582b722e91006.tar.bz2
volse-hubzilla-ce28760c2a7319f3cdc25c39a62582b722e91006.zip
Merge remote-tracking branch 'upstream/master'
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>