aboutsummaryrefslogtreecommitdiffstats
path: root/skins/common/protect.js
Commit message (Collapse)AuthorAgeFilesLines
* [Core JS] More fixing of global config variable usageKrinkle2011-12-311-8/+12
| | | | | | | | | | | | | | | | | | | * mw.config is the new way, and global config variable lookups are deprecated * Based on two phase3-wide quick searches: -- of " wg": http://toolserver.org/~krinkle/wikimedia-svn-search/view.php?id=321&hash=81700bf7486e4fee3b7bc1f83eb9eba6 -- of "!wg": http://toolserver.org/~krinkle/wikimedia-svn-search/view.php?id=327&hash=47c9d54a7a1d5d58a724dd834585f40d Related changes: * Changed some php comments mentioning "wg" variables to include the dollar sign, and a typo when the wf function prefix was meant. * Removed TODO comment in wikibits.js and made it use the JS equivalent of wfUrlencode, which we have now, mw.util.wikiUrlencode * SpecialUpload.php: use OutputPage::addJsConfigVars instead of creating a new script tag through OutputPage::addScript(Skin::makeVariablesScript(..)) * Renamed wgUploadSetup in upload.js and made it local. Not used anywhere in ./trunk/phase3 and ./trunk/extensions * Fix OutputPage::addJsConfigVars so that it can actually be called with an array instead of two arguments for key/value * Some minor whitespace/convention stuff around the same line Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/107741
* Use [] instead of new Array.Daniel Friesen2011-08-121-3/+3
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/94335
* (bug 16921) Add JavaScript-based enforcing of byte limits on move and ↵Roan Kattouw2011-04-251-0/+2
| | | | | | | protection forms. Patch by Jan Paul Posma Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/86846
* (bug 26265) Many semicolons are missing from JavaScript filesSam Reed2010-12-061-2/+2
| | | | | | | Unterminated statements.. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/77922
* More JS documentation fixupsSam Reed2010-11-301-3/+3
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/77489
* Start fixing up javascript function documentationSam Reed2010-11-301-7/+7
| | | | | | | Switching order, renaming parameters in documentation Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/77486
* Merging resourceloader branch into trunk. Full documentation is at ↵Roan Kattouw2010-09-041-1/+1
| | | | | | | http://www.mediawiki.org/wiki/ResourceLoader and a general overview has been posted on wikitech-li <http://lists.wikimedia.org/pipermail/wikitech-l/2010-September/049253.html>. One important change is that all JS is now loaded at the bottom, so any scripts assuming things from wikibits or whatever are present will fail. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/72349
* * (bug 6579) Fixed protecting images from uploading onlyBryan Tong Minh2009-11-041-1/+1
| | | | | | | | | * Added upload by default to $wgRestrictionTypes Also requires MessagesEn.php accidently committed in r58536 Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/58537
* * Revert r55555-55557 for now, breaks tabs in special preferences, don't ↵Niklas Laxström2009-08-251-3/+3
| | | | | | | | | | | | | know why Also, the following looks wrong: - for (var id = 0; id < ta.length; id++) { + for (var id in ta) { var n = document.getElementById(id); Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/55569
* - Use array literals instead of new Array(); (note that `new Array;` without ↵Daniel Friesen2009-08-241-3/+3
| | | | | | | | | | () is actually supposed to break in IE6 iirc) - Use RegExp literals instead of new RegExp(...); when unnecessary. - Fix bad use of object iteration on an array bug20376 Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/55555
* * (bug 15701) Protection form was too wide for some browsers as 2 columns, ↵Alex Z2008-09-251-4/+3
| | | | | | | | | switching to 1 column format. * Move the "unlock move permissions" checkbox to a more logical place with the options for move protection, instead of with the cascading checkbox. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/41241
* In protect.js:Tim Starling2008-09-161-297/+322
| | | | | | | | | | | | | | | | | | | | * Use fragments of English when naming things, instead of a jumble of words vaguely related to the topic * Use verbs in function names that are related to what the functions do * Move all functions into an object, to avoid prefixes that look like part of a nonsensical sentence * Fixed a bug whereby the "move" controls would not be unlocked if the expiry times differed. Refactored the relevant code. * When the user types something into the "other time" box, automatically select "other time" from the drop-down list. In ProtectionForm: * Use the new protect.js interface * Use accessor instead of Title member variable mRestrictionsExpiry * Added an "existing expiry" option to the expiry drop-down list, instead of putting the ISO 8601 time in the "other" box * Formatting * Fixed convoluted expiry time data flow, documented * s/List/Selection, for variables containing a value that the user has selected from a list Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/40898
* (bug 12650) Make it possible to enter separate expiry times for each ↵Alex Z2008-09-131-1/+110
| | | | | | | restriction type. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/40770
* use label.htmlFor=... instead of label.setAttribute('for', ...): the former ↵River Tarnell2008-01-161-1/+1
| | | | | | | works in IE7, Firefox, Safari and Opera, while the latter does not work in IE7 Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/29843
* More title protection clean up. JS errors were being thrown calling the ↵Aaron Schulz2007-12-111-18/+39
| | | | | | | non-existent cascade checkbox. Also the chain box was showing for non-existent titles even though 'create' was the only available protection type. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/28399
* *Revert bogus code from r24419. indexOf() is meant for Strings, not arrays. ↵Aaron Schulz2007-09-191-1/+10
| | | | | | | If used on such, it dies miserably in IE. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/25935
* Document this file all overRob Church2007-07-291-8/+55
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/24429
* (bug 10732 and others) Further fixes to protect chaining JavaScript; ↵Rob Church2007-07-291-46/+37
| | | | | | | introduce addClickHandler() to work around missing addEventListener() in IE and other browsers that suck Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/24427
* * (bug 10732) Protection chaining checkbox broken - this appears to have ↵Rob Church2007-07-281-18/+10
| | | | | | | | | regressed in r24272/r24274; we might do worse than to fix things up so checkboxes without a certain class can't be shift-clicked or whatever * Rewrite a couple bits in allowCascade() - isCascadeableLevel() was inefficient, and the function was throwing up errors and whatnot due to bad checking of selection indexes and so on Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/24419
* *Add allowCascade() to protectChainUpdate()Aaron Schulz2007-03-151-0/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/20478
* *Syntax cleanupAaron Schulz2007-03-151-6/+13
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/20477
* *Make allowCascade() uncheck as well as grey out cascadeAaron Schulz2007-03-151-0/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/20476
* *Add nifty JS function to grey out cascade option when it will not applyAaron Schulz2007-03-151-0/+20
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/20475
* Kill whitespaces in some javascript files.Antoine Musso2007-02-031-7/+7
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/19743
* Add spacing in the protection form.Rotem Liss2006-07-231-0/+3
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/15793
* * (bug 1735) Revamped protection interfaceBrion Vibber2005-12-221-0/+126
* (bug 675) Add page protection level for unregistered/new accounts * User::isNewbie now uses the registration date and $wgAutoconfirmAge * Log views show message when no matches Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/12207