jquery.makeCollapsible: Make it possible to clone a collapsible
authorSchnark <listenleser@gmail.com>
Wed, 15 Jul 2015 09:11:56 +0000 (09:11 +0000)
committer[[mw:User:Schnark]] <gerritpatchuploader@gmail.com>
Wed, 15 Jul 2015 09:11:56 +0000 (09:11 +0000)
commit6bab937dc76a5e0b0369104ad1e891b8d8dd5549
treed466f54a0a92a81cbcf8462da6a1d4fbd5558c39
parent8b703a7fa00a388cdee36bdfd2f444c72a6b6e50
jquery.makeCollapsible: Make it possible to clone a collapsible

Currently collapsible elements are no longer collapsible after you
cloned them and made them collapsible again, e.g. via

 $clone = $('#bodyContent').clone();
 mw.hook('wikipage.content').fire($clone);
 $('#bodyContent').replaceWith($clone);

This patch fixes this by ignoring the linksPassthru option on links
with href="#".

Bug: T71288
Change-Id: I954483f3e26f46172ec2374a3717f37dd309ca57
resources/src/jquery/jquery.makeCollapsible.js
tests/qunit/suites/resources/jquery/jquery.makeCollapsible.test.js