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

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
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