User talk:Equazcion/UniversalTransclusionPreviews.js
Appearance
Interface-protected edit request on 19 January 2019
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please change:
if ((wgAction == "edit") || (wgAction == "submit")){
var hidden = '';
to
if ((wgAction == "edit") || (wgAction == "submit")){
var hidden = '';
$("#templatesandbox-editform").remove();
This will remove an element with the same id as the form used in te script, which causes the script to not be able to open the preview. I have tested this with all skins. Danski454 (talk) 11:39, 19 January 2019 (UTC)
- Danski454, not that this fix shouldn't be made, but I'd say you should use User:Jackmcbarn/advancedtemplatesandbox.js instead - does what this script does and also has another nice feature in being able to preview a page as another template. (e.g, preview Template:Foo/sandbox as if it were Template:Foo ) Galobtter (pingó mió) 20:28, 30 January 2019 (UTC)
- Galobtter Thank you, I'll look at it. Danski454 (talk) 21:32, 30 January 2019 (UTC)
- Danski454: is this change still required? — Martin (MSGJ · talk) 20:46, 8 February 2019 (UTC)
- MSGJ: I don't personally need it, but the bug is still present. Danski454 (talk) 20:50, 8 February 2019 (UTC)
- Danski454: is this change still required? — Martin (MSGJ · talk) 20:46, 8 February 2019 (UTC)
- Galobtter Thank you, I'll look at it. Danski454 (talk) 21:32, 30 January 2019 (UTC)
- Done — Martin (MSGJ · talk) 21:51, 8 February 2019 (UTC)
Incompatible with Visual editor
[edit]This script is most probably incompatible with Visual editor, and someone more knowledgeable may want to update the documentation page noting this fact. Thanks! ---CX Zoom(he/him) (let's talk|contribs) 20:49, 14 February 2022 (UTC)