Verified:

sigma Game profile

Member
406

Sep 5th 2013, 18:35:09

I left qz a message on IRC about this. May as well repeat it here.

This issue is actually for all of the menu's in FFA control panel page. It comes from *i assume* the updated javascript.

The first error I noticed once I copied the html/javascript locally was that the jquery 1.10.2 was not loading correctly. The http: is missing. So I have: script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"

The next correction should be changing the actual script code from attr("checked") == true and all instances of attr to prop. I assume the old jquery that was used was pre-1.6 and pre-1.6 attr is used. However, since 1.6 (i believe may be a little off on the release numbers) prop should be used instead.


That should fix the problems. Another solution would be to not use the html input onchange function, and just use straight up jquery. Doing something like so:

$('input:checkbox[name="selectAll"]').on('change', function () {
$(this).closest('tbody').find(':checkbox').prop('checked', this.checked);
});

Hope this helps.

Edited By: sigma on Sep 5th 2013, 18:37:30
Back To Thread
See Subsequent Edit