BinkWu / jquery-checktree

Automatically exported from code.google.com/p/jquery-checktree
0 stars 0 forks source link

Checkboxes should start in checked status if underlying checkbox input was checked #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Currently all check boxes are rendered in the unchecked status at
initialization.  Tested in Firefox 3.0.3 and IE7.

Check boxes initial state should be determined by the initial checked state
of the backing check box and children check boxes.

- Michael Lang

Original issue reported on code.google.com by xquis...@gmail.com on 18 Oct 2008 at 4:16

GoogleCodeExporter commented 8 years ago
It would be realy great :)

Original comment by d.cod...@gmail.com on 29 Oct 2008 at 12:35

GoogleCodeExporter commented 8 years ago
I've made some changes to this class, so now it handles "initial state"
Still awaiting for official issue resolving :)

Original comment by d.cod...@gmail.com on 3 Nov 2008 at 2:37

Attachments:

GoogleCodeExporter commented 8 years ago
Can anyone confirm whether this bug actually exists anymore on the trunk? 

I'm pretty certain that r5 fixed this issue.  See
http://code.google.com/p/jquery-checktree/source/detail?r=5

Original comment by jgeewax on 9 Nov 2008 at 12:16

GoogleCodeExporter commented 8 years ago
Issue 4 has been merged into this issue.

Original comment by jgeewax on 24 Feb 2009 at 5:48

GoogleCodeExporter commented 8 years ago
Issue 11 has been merged into this issue.

Original comment by jgeewax on 4 Mar 2009 at 4:48

GoogleCodeExporter commented 8 years ago
Issue 13 has been merged into this issue.

Original comment by jgeewax on 15 Apr 2009 at 6:02

GoogleCodeExporter commented 8 years ago
Issue 17 has been merged into this issue.

Original comment by jgeewax on 30 Sep 2009 at 4:17

GoogleCodeExporter commented 8 years ago
This still happens to me, using 0.3b1.

Original comment by ptomb...@gmail.com on 23 Feb 2010 at 7:01

GoogleCodeExporter commented 8 years ago
I'm not to slick with jQuery but I added the following code in 0.3b1 to make 
the checks reflect the underlying checkboxes.
    ...
    $lis.not(':has(.arrow)').each(function() {
        // This little piece here is by far the slowest.
        var classes = '';
        if (jQuery(this).find(':checkbox:first').is(':checked')) {
            classes = ' checked';
        } else if (jQuery(this).children('ul:first').find(':checkbox:checked:first').length == 1) {
            classes = ' half_checked';
        }
        jQuery(this).prepend('<div class="arrow"></div><div class="checkbox'+classes+'"></div>');
    });
    ...

Original comment by patha...@twc.com on 19 Nov 2010 at 1:12

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
This does not seem to be fixed in the 0.3b1 version. Is there a newer version?

Original comment by mbrande...@gmail.com on 6 Dec 2013 at 6:28