Commit graph

741 commits

Author SHA1 Message Date
Platonides
318e4fa4ed (bug 21520) Anonymous previews now also give a warning about not being
logged in (anonpreviewwarning).
2010-03-29 22:44:59 +00:00
Happy-melon
9ebb2dec9c Get message in wfEmptyMsg using the user's interface language; closer to the previous behaviour and might fix the issue reported in r64178 CR 2010-03-26 11:21:14 +00:00
Alexandre Emsenhuber
62031d34b5 Fixed some doxygen warnings 2010-03-17 22:02:43 +00:00
Tobias
076ff58f10 reverting myself (r63361) due to comment #2 in bug 22756. Feature not needed 2010-03-07 18:29:22 +00:00
Tobias
da4fca6569 bug 22756: Add parameter to noarticletext/newarticletext indicating if it's the current user's user (talk) page 2010-03-07 16:26:42 +00:00
Conrad Irwin
a88a955ebf Merge fixes to ?preload= from /branches/conrad/ (cf. bug 5210, r62864, r62035) 2010-03-03 02:41:14 +00:00
Alexandre Emsenhuber
d4c2f2796b (bug 8790) Metadata edition ($wgUseMetadataEdit) has been moved to a separate extension "MetadataEdit":
* Removed $wgUseMetadataEdit and related code in EditPage from and created a new extension "MetadataEdit"
* Added 3 new hooks EditFormInitialText, EditFormGetDiffText and EditFormGetPreviewText
* Moved 'metadata_help' message to the extension
2010-02-20 17:05:56 +00:00
Tobias
7d19b08c2c LogExtract on blocked user's pages: fixing r62241 (see comments by Tim) 2010-02-19 10:37:20 +00:00
Tim Starling
f5b882aadc Moving Conrad's recent parser work out to a branch. Reverted r62434, r62416, r62150, r62111, r62085, r62081, r62080, r62077, r62076, r62069, r62049, r62035. 2010-02-19 05:19:32 +00:00
Roan Kattouw
600c3ea41e Revert r62022: breaks tab order on section=new edits, see also CR. 2010-02-10 15:15:36 +00:00
Tobias
7f6310847d showLogExtract of block log on user (talk) pages of blocked users 2010-02-10 13:08:24 +00:00
Jack Phoenix
e30edaf053 bug #19334: textarea jumps when editing longer articles in IE8 2010-02-09 19:51:17 +00:00
Andrew Garrett
83d7e61373 Reverse removal of Live Preview in r59446, with the following changes:
* Make Live Preview entirely JS-based. It requires no modification of the HTML.
* Replace annoying slideDown with less annoying fadeIn().
* Ensure that elements not supposed to be shown are not, in fact, shown by fadeIn().
* Remove some redundant lines of code.
* Make compatible with the current jQuery usage in MediaWiki.
2010-02-09 07:39:09 +00:00
Conrad Irwin
14ebd07539 Initialize parser properly in getTransclusionText() 2010-02-07 11:59:58 +00:00
Conrad Irwin
f367303c9e bug 5210 - add getTransclusionText() to the Parser to remove the horrible (and
very broken) attempt to reimplement bits of the preprocessor in 
           EditPage.php.
2010-02-05 16:49:21 +00:00
Alexandre Emsenhuber
1892c2eaed Follow-up r56441: the cancel link now links to the correct version even on preview 2010-02-05 15:01:07 +00:00
Raimond Spekking
faf98d2894 Fix tabindex for summaryfield. The textbox area has tabindex 1 already. 2010-02-05 13:43:14 +00:00
Chad Horohoe
e3ee8e0903 Rm some unneeded $wgParser globals 2010-01-22 16:10:52 +00:00
Aaron Schulz
7eb65c7cc1 Don't show empty edit box for invalid sections requested by users who cannot edit 2010-01-19 08:47:48 +00:00
Aaron Schulz
244dd9b4de * EditPageNoSuchSection hook
* Added message to bad section error for reviewed pages
* A few tiny cleanups
2010-01-18 00:58:22 +00:00
Tobias
001b4fe211 provided option for showLogExtract to wrap result. Added log for create protected page 2010-01-16 11:24:23 +00:00
Aaron Schulz
9b973bf9d2 Made noSuchSectionPage() use mTitle 2010-01-16 07:18:16 +00:00
Aryeh Gregor
2f0d048cc6 Remove OutputPage::{get,set}OnloadHandler()
Didn't work at all in Monobook, Modern, Vector, or any derived skin, for
who knows how long.  Only one caller, which was using it to autofocus,
which is a bad idea anyway because it will cause the focus to happen too
late, often after the user has already interacted with the page.  Any
legitimate callers may as well just add the onload in pure JS without
adding an attribute to the body.
2010-01-15 00:55:51 +00:00
Platonides
60c0474ca8 (bug 19226) First line renders differently on many UI messages
Added newlines before $1 to wrapWikiMsgs of <div>s

Also fixes r61052 utf-8 screw-up on RELEASE-NOTES.
2010-01-14 17:14:49 +00:00
Bryan Tong Minh
b024a2be35 Followup r58980: Moved logic for addsection-editintro/preload from SkinTemplate to EditPage.
Message names changed from talk-addsection-* to addsection-*.
Messages now contain the preload/editnotice themselves instead of the title of the page that contains them.
2010-01-11 11:47:50 +00:00
Sam Reed
b6e0df246f Attempt at normalistion of comparison styles - empty string on left and right hand side normalised to it being on the rhs
Before this change, there were (? being regex 0 or 1)

"" ===? 1
'' ===? 24
"" !==? 8
'' !==? 32

== "" 14
== '' 344
!= "" 9
!== "" 4
!= '' 151
!== '' 85


Rhs was the much more common, and the preferred style by many developers.. (Was a similar discussion in #mediawiki recently.. After that lolbugreport i think)

Where there is a string (non empty) on the lhs, and variable/method call on the rhs still need normalising
2010-01-06 19:59:42 +00:00
Alexandre Emsenhuber
2413e64a7c Missing global; was throwing Fatal error: Call to a member function getSkinFromCssJsSubpage() on a non-object in includes/EditPage.php on line 1467 2009-12-12 18:04:13 +00:00
Daniel Friesen
71fc5a0ffc Fixes for comments on r59655
- Look for any textbox since just creating one doesn't work
- editFormHeadInit -> showHeader
- code style
- moved checkbox initialization into relevant locations
- dropped hardcoded use of currentFocused in favor of catching event delegated focus events within the edit form

Also:
- Removed more direct uses of $wgRequest in favor of properties
- add $wgPreviewOnOpenNamespaces for extensions like SMW that have category like namespaces.
2009-12-08 17:17:24 +00:00
Tim Starling
c5fc589257 Replaced all instances of <<<END (which breaks vim syntax highlighting), with a type-specific end token. For HTML and SQL, this causes vim to highlight the embedded text with the HTML or SQL file type plugins respectively, which is very neat. 2009-12-07 08:51:52 +00:00
Chad Horohoe
0a64d2421f Use spaces so these line up nicely for everybody 2009-12-04 15:45:02 +00:00
Daniel Friesen
03f8f9a7ee Expand a few comments. One as per Nikerabbit's comment on r59695. 2009-12-03 10:29:34 +00:00
Daniel Friesen
09867504e2 Missing $wgRequest in showSummaryInput 2009-12-03 08:22:56 +00:00
Daniel Friesen
a5fc1cd8a5 Fix notices 2009-12-03 08:15:55 +00:00
Daniel Friesen
5833ddcfc5 Fixes for fixme comments on my r59655 2009-12-02 18:51:19 +00:00
Roan Kattouw
2cef989e7d Revert unintended change in r59666 2009-12-02 16:29:40 +00:00
Roan Kattouw
e6e58fe450 Fix jQuery bug filed upstream as http://dev.jquery.com/ticket/5583 . Also fixes bug 21709 (dialogs freeze in raw/combined mode but not in minified mode). The fact that this worked in minified mode is due to a bug in JSmin, contacted the author about that. 2009-12-02 16:28:29 +00:00
Daniel Friesen
fa3aa9653e EditPage refactor and improvements.
- EditPage::showEditForm broken up into task specific methods
- Subclasses can indicate they can't support section mode
- Standard inputs should all be now in methods they can be grabbed from by subclasses that want to re-arange things
- Many more places to override and hook into to change behavior
- showTextbox1 parameters changed from $classes to $customAttribs and $textoverride
- showContentForm and importContentFormData added; New workflow to override the wpTextbox1 behavior to use an alternate edit form ui or handle wpTextbox1 content in an alternate way.
- getActionURL added for EditPage subclasses used in places where $this->action isn't enough (ie: EditPage on special pages)
Html::textarea added
2009-12-02 07:22:29 +00:00
Tim Starling
7688101426 Removed JS2 work (has been moved to the js2-work branch). Has been lightly tested, should mostly work. Some of the more complicated associated changes are listed below.
* Reverted HttpFunctions.php to r45549 and renamed wgSyncHTTPTimeout back to wgHTTPTimeout
* Edited out the asynchronous features from UploadFromUrl. Made fetchFile() use the curlCopy() function from new-upload r47811 instead of Http::doDownload(). Wrote my own URL validity check to avoid having to use either of the two buggy precedents.
* Removed UploadFromChunk
* Removed chunk upload and background status from ApiUpload.php
* Reverted r54669, use of addScriptClass()
* Left getHeadScripts() in its current location (OutputPage) instead of moving it back to SkinTemplate, just added wikibits.js to it to replace the removed addCoreScripts2Top()
2009-11-26 12:00:36 +00:00
Raimond Spekking
efdbf8eb1f Followup r59363: Fix wrong syntax for Html::input. It accept other parameters then Xml::input. 2009-11-24 17:31:06 +00:00
Sam Reed
258009f383 Further followup to r59360
Add spellcheck to html5attribs for blacklisting

Switch from xml to html input
2009-11-23 19:16:43 +00:00
Sam Reed
3792b24803 Minor followup for r59360
Should really read the proper source/html validate

http://www.w3.org/TR/html5/editing.html

Replace yes for true
2009-11-23 18:52:35 +00:00
Sam Reed
bea33dfc16 bug 21604 Spellcheck attribute for editsummary 2009-11-23 18:38:57 +00:00
Andrew Garrett
383ac92910 Enabling change for r59356, allow programmatic control over whether or not the summary field is shown 2009-11-23 13:27:34 +00:00
Siebrand Mazeland
e8a65f9e25 Update break notation to self enclosed and properly spaced 2009-11-14 20:59:15 +00:00
Alexandre Emsenhuber
6096c81304 * (bug 21420) Fix for r27043: typo 2009-11-06 16:27:28 +00:00
Roan Kattouw
2bb3fd049d Remove section edit links in edit conflict form pointing nowhere useful and only confusing people. Apparently this is a regression from r8855 (!) that went unnoticed for nearly 4.5 years. Hereby nominated for the Most Hilarious Bugs of All Time contest 2009-10-30 14:30:51 +00:00
Alexandre Emsenhuber
7ae1707e6e * $fname -> __METHOD__
* whitespaces fixes
2009-10-25 15:02:33 +00:00
Alexandre Emsenhuber
95343e3b87 removed trailing spaces 2009-10-23 11:08:08 +00:00
Andrew Garrett
d83d148371 Add some hook HTML injection points to EditForm, between the Copyright warning and the content, and after the preview content. 2009-10-22 13:54:36 +00:00
Brion Vibber
c078fa82cd Pull back r56730 for now: "New configuration variable $wgShowPageOnRedlink that can be set to show the page instead of an edit interface when visiting a red link. The value can be specified for specific usergroups and namespaces."
The config var's formatting strikes me as kinda scary; might be better to implement this as a permission key, which can have fancy namespace variants handled by an extension or something pretty easily (it seems to me like that's a rarer use case).
2009-09-30 19:12:41 +00:00