TBody problem when draggable or sortable with IE Options

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

TBody problem when draggable or sortable with IE Options

justicfu

I found a strange issue when assign a draggable or sortable to a
tbody
element under IE7. The helper and placeholder cannot show up. This
problem only found at IE7, the firefox is greate.
Any body can help me?
Here is the sample code:

$("#testtable").sortable({
                items: ".testtbody",
                revert: true,
                tree: true
            });


    <table id="testtable">
        <tbody id="testtbody_1" class="testtbody">
            <tr>
                <td>
                    aaaaaaaaaaaaaaaa
                </td>
                <td>
                    ------
                </td>
                <td>
                    ------
                </td>
            </tr>
            <tr>
                <td>
                    bbbbbbbbbbbbbbbbbbb
                </td>
                <td>
                    ------
                </td>
                <td>
                    ------
                </td>
            </tr>
        </tbody>
        <tbody id="testtbody_2" class="testtbody">
            <tr>
                <td>
                    ccccccccccccccccccc
                </td>
                <td>
                    ------
                </td>
                <td>
                    ------
                </td>
            </tr>
            <tr>
                <td>
                    dddddddddddddddddddd
                </td>
                <td>
                    ------
                </td>
                <td>
                    ------
                </td>
            </tr>
        </tbody>
    </table>



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "jQuery Plugins" group.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to [hidden email]
For more options, visit this group at http://groups.google.com/group/jquery-plugins?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|

Re: TBody problem when draggable or sortable with IE Options

justicfu

add this will be solve the helper problem:
helper: function(e, ui) { return $("<table></table>").addClass
("helper").append(ui.contents().clone()); }

But how to solve the placeholder problem?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "jQuery Plugins" group.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to [hidden email]
For more options, visit this group at http://groups.google.com/group/jquery-plugins?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|

Re: TBody problem when draggable or sortable with IE Options

justicfu

start: function(e, ui) { $(ui.placeholder).append(ui.item.clone().find
("tr:first").each(function() { $(this).find("td").each(function() { $
(this).empty()}) })); },

On Jan 6, 12:24 pm, justicfu <[hidden email]> wrote:
> add this will be solve the helper problem:
> helper: function(e, ui) { return $("<table></table>").addClass
> ("helper").append(ui.contents().clone()); }
>
> But how to solve the placeholder problem?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "jQuery Plugins" group.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to [hidden email]
For more options, visit this group at http://groups.google.com/group/jquery-plugins?hl=en
-~----------~----~----~----~------~----~------~--~---