diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-09-17 10:19:27 +1000 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-09-17 10:19:27 +1000 |
commit | fa76da1dabdff9da3aa43f162337f5f3267b837c (patch) | |
tree | 53ffc92e1fa760ca46c645b077939bc974292c47 | |
parent | 4c5a74284bb1c2e23ef1e40c09d10f3449f8c853 (diff) | |
parent | fae5ea749a5bad360e9d580b8492376de4113205 (diff) | |
download | volse-hubzilla-fa76da1dabdff9da3aa43f162337f5f3267b837c.tar.gz volse-hubzilla-fa76da1dabdff9da3aa43f162337f5f3267b837c.tar.bz2 volse-hubzilla-fa76da1dabdff9da3aa43f162337f5f3267b837c.zip |
Merge pull request #43 from mrjive/toggleselect
added toggle_select
-rwxr-xr-x | view/tpl/admin_users.tpl | 10 |
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> |