https://bugzilla.wikimedia.org/show_bug.cgi?id=38704

Michael M. <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #2 from Michael M. <[email protected]> ---
(In reply to Krinkle from comment #1)
> Work-around:
> * Don't clone including data and events, you're creating a new table
> essentially. So call .tablesorter() on it if you want it to be sortable.
> > $('table.sortable').first().clone().appendTo( mw.util.$content ).sortable()

Now with mw.hook('wikipage.content') it is possible to do

$clone = $('table.sortable').clone();
mw.hook('wikipage.content').fire($clone);
$clone.appendTo(mw.util.$content);

This seems a reasonable approach to me, and I no longer consider it as just a
work-around, but as an actual solution. So let's just close this as WONTFIX.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to