Last modified: 2011-03-13 18:06:18 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T10946, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 8946 - Javascript variables for section and preview mode
Javascript variables for section and preview mode
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: javascript
  Show dependency treegraph
 
Reported: 2007-02-11 10:37 UTC by Andrew Dunbar
Modified: 2011-03-13 18:06 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Andrew Dunbar 2007-02-11 10:37:05 UTC
There are no JS variables to tell us whether we are viewing or previewing. It
would be handy to know if we're previewing so that JS that folds sections
doesn't activate when previewing edits to that section.

A more general solutions might provide all the URL/GET parameters such as
"action", "section" etc.
Comment 1 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-02-11 17:04:02 UTC
See also bug 8421.
Comment 2 Chad H. 2008-01-25 05:32:49 UTC
One of the variables is wgAction. For article viewing it says "view." For previewing it says "submit." Can this be closed?
Comment 3 Andrew Dunbar 2008-01-25 12:46:19 UTC
But they don't tell you whether you're previewing the entire article or just a section.
Comment 4 Jesse (Pathoschild) 2008-01-25 15:59:10 UTC
Adding "&section=x" to the 'action' field of the edit form when editing a section would work nicely, since it would carry over the "&section=" in the URL.
Comment 5 AlexSm 2008-01-25 16:04:53 UTC
Check wpSection hidden input field, no need for yet another JS variable.
Comment 6 Tim Starling 2008-10-28 08:21:23 UTC
wpSection sounds good to me. Closing as WONTFIX.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links