Commit graph

1275 commits

Author SHA1 Message Date
Roan Kattouw 0d78534735 Remove RegExp.escape() in favor of String.prototype.escapeRE() 2010-10-28 15:32:43 +00:00
Roan Kattouw 947fe69c27 (bug 25339) Allow specifying separate base paths for local and remote paths in ResourceLoaderFileModule::__construct(). Extensions can use this to properly point the resource loader to their resources in a way that doesn't depend on the extensions/ directory being a subdirectory of phase3/ on the filesystem and that respects $wgExtensionAssetsPath. Also converted all extensions using ResourceLoader to use this approach, except MWEmbed which uses way more indirection building its module registrations than I can deal with after midnight.
What actually happens here
* Add $localBasePath, $remoteBasePath params to the FileModule constructor, defaulting to $IP and $wgScriptPath respectively
* Add getLocalPath() and getRemotePath(), which use this information to build a proper FS or URL path for a file
* Make readScriptFiles() non-static so it can use these functions
* Run every single file path we use through either getLocalPath() or getRemotePath() as appropriate
** Except file dependencies, these are already prefixed. Our inability to give them special treatment caused bugs earlier
* Kill prefixFilePathList() and resolveFilePath(), no longer needed
2010-10-27 22:22:10 +00:00
Trevor Parscal bb88f087b4 Mostly reverted r75487, making use of a new version of mediaWiki.msg. 2010-10-27 00:16:32 +00:00
Trevor Parscal 55a8f66322 Updated use of mediaWiki.msg to mediaWiki.message 2010-10-26 23:42:23 +00:00
Raimond Spekking f2d012e485 Localisation updates for core and extension messages from translatewiki.net (2010-10-26 19:28:00 UTC) 2010-10-26 19:53:14 +00:00
Raimond Spekking c9d8fe5cf7 Localisation updates for core and extension messages from translatewiki.net (2010-10-24 19:14:00 UTC) 2010-10-24 19:30:56 +00:00
Raimond Spekking 3a0674cb47 Localisation updates for core and extension messages from translatewiki.net (2010-10-22 18:58:00 UTC) 2010-10-22 19:41:58 +00:00
Raimond Spekking d479e9472b Localisation updates for core and extension messages from translatewiki.net (2010-10-21 19:58:00 UTC) 2010-10-21 21:55:48 +00:00
Raimond Spekking 0db4789d9b Localisation updates for core and extension messages from translatewiki.net (2010-10-19 19:03:00 UTC) 2010-10-19 19:38:34 +00:00
Raimond Spekking 2b1e552359 Localisation updates for core and extension messages from translatewiki.net (2010-10-18 19:23:00 UTC) 2010-10-18 19:42:19 +00:00
Raimond Spekking f187eda4b7 Localisation updates for core and extension messages from translatewiki.net (2010-10-17 19:57:00 UTC) 2010-10-17 20:36:41 +00:00
Raimond Spekking 82820625d1 Localisation updates for core and extension messages from translatewiki.net (2010-10-16 18:47:00 UTC) 2010-10-16 19:18:14 +00:00
Alexandre Emsenhuber 2bb7792e78 svn:eol-style native 2010-10-16 18:47:46 +00:00
Raimond Spekking e24cb6fbad Localisation updates for core and extension messages from translatewiki.net (2010-10-15 19:02:00 UTC) 2010-10-15 19:18:12 +00:00
Priyanka Dhanda dd5add4e37 Tests for Toolbar dialogs in the wikieditor. Migrated part of Calcey's tests from svn.wikimedia.org/svnroot/mediawiki/trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases 2010-10-14 16:42:56 +00:00
Raimond Spekking 34a39c0311 Localisation updates for core and extension messages from translatewiki.net (2010-10-13 19:22:00 UTC) 2010-10-13 19:36:44 +00:00
Raimond Spekking 05c12378d5 Localisation updates for core and extension messages from translatewiki.net (2010-10-11 19:00:00 UTC) 2010-10-11 19:10:39 +00:00
Roan Kattouw 4e9d2b26d2 WikiEditor: (bug 25460) Place cursor behind, not before, inserted signature 2010-10-11 08:24:04 +00:00
Raimond Spekking b3cc09cedc Localisation updates for core and extension messages from translatewiki.net (2010-10-10 19:07:00 UTC) 2010-10-10 19:23:48 +00:00
Raimond Spekking bb9356f3b9 Localisation updates for core and extension messages from translatewiki.net (2010-10-09 19:18:00 UTC) 2010-10-09 19:32:58 +00:00
Trevor Parscal 543776c990 * ResourceLoaderModule.php - added basePath argument to ResourceLoaderFileModule::__construct to help make module definitions be less repeditive.
* Vector.hooks.php, WikiEditor.hooks.php - implemented new basePath argument for ResourceLoaderFileModule::__construct
2010-10-07 23:31:30 +00:00
Raimond Spekking d1f3b11a14 Localisation updates for core and extension messages from translatewiki.net (2010-10-07 19:02:00 UTC) 2010-10-07 19:25:06 +00:00
Trevor Parscal da918a5d68 Made use of mediaWiki.loader for adding in mediawiki.legacy.diff for the change tab of jquery.wikiEditor.preview 2010-10-05 22:06:16 +00:00
Trevor Parscal 49eb154f2c * Fixed mistake made in r74271 where some functions were moved from core jquery.wikiEditor into jquery.wikiEditor.iframe, causing errors for textarea mode. These changes properly split the functions, allowing the iframe to override the textarea functions, and using $.client to only execute them on IE. (tested in IE7)
* Also fixed IE bug, where "delete window.myThing;" fails but "delete myThing;" succeeds.
2010-10-05 20:54:38 +00:00
Raimond Spekking 3fbe9b3ce7 Localisation updates for core and extension messages from translatewiki.net (2010-10-05 18:38:00 UTC) 2010-10-05 18:54:47 +00:00
Trevor Parscal c92c4436a5 Fixed autoMsg misusing mediaWiki.msg.get 2010-10-04 21:17:08 +00:00
Trevor Parscal cb6ff96431 Got more dialogs working again 2010-10-04 21:08:41 +00:00
Trevor Parscal 0a71513db4 * Introduced the concept of context extensions
* Abstracted the requirements concept being used to hack in the iframe as a context extension requirement
* Removed some hardcoding for iframe stuff
* Moved about 60k of JavaScript code out of the main wikiEditor script, and into an iframe only context extension.
2010-10-04 20:12:30 +00:00
Raimond Spekking ef13e31ee2 Localisation updates for core and extension messages from translatewiki.net (2010-10-04 18:48:00 UTC) 2010-10-04 19:02:27 +00:00
Raimond Spekking 7c2428abab Localisation updates for core and extension messages from translatewiki.net (2010-10-02 19:45:00 UTC) 2010-10-02 19:58:17 +00:00
Trevor Parscal 0a0f6f6e8e * Fixed the toolbar, where sprited buttons weren't receiving the correct classes.
* Changed the way dialogs toolbar buttons were being added
* Made dialog code load on the fly
2010-10-01 21:58:04 +00:00
Raimond Spekking ddf6b59294 Localisation updates for core and extension messages from translatewiki.net (2010-10-01 19:27:00 UTC)
Full export after separation of countries/states
2010-10-01 19:37:33 +00:00
Trevor Parscal a57b88031e Fixed typo in README 2010-10-01 19:32:11 +00:00
Trevor Parscal a5d394086c Fixed typo in r73179 2010-10-01 19:26:08 +00:00
Trevor Parscal a8a3b67566 Fixed indentation and bracing. 2010-10-01 19:14:33 +00:00
Trevor Parscal 00f4af97cd Fixed copy-paste remnants, specifically the use of the name Vector instead of WikiEditor. 2010-10-01 18:15:10 +00:00
Raimond Spekking bb0bf5d772 Localisation updates for core and extension messages from translatewiki.net (2010-09-30 19:59:00 UTC) 2010-09-30 20:11:36 +00:00
Raimond Spekking f5318e0be4 Localisation updates for core and extension messages from translatewiki.net (2010-09-29 19:56:00 UTC) 2010-09-29 20:04:42 +00:00
Trevor Parscal 00a8966b90 Made ResourceLoader an instantiable object, rather than a static one, making it more modular and testable. 2010-09-29 19:04:04 +00:00
Raimond Spekking 3bf3f43839 Localisation updates for core and extension messages from translatewiki.net (2010-09-28 18:52:00 UTC) 2010-09-28 19:02:58 +00:00
Raimond Spekking 68b954ca81 Localisation updates for core and extension messages from translatewiki.net (2010-09-27 19:19:00 UTC) 2010-09-27 19:39:45 +00:00
Raimond Spekking bbf0e72f64 Localisation updates for core and extension messages from translatewiki.net (2010-09-26 19:39:00 UTC) 2010-09-26 19:56:28 +00:00
Raimond Spekking 4f646c17cd Localisation updates for core and extension messages from translatewiki.net (2010-09-24 19:02:00 UTC) 2010-09-24 19:22:35 +00:00
Raimond Spekking ec7a9abf96 Localisation updates for core and extension messages from translatewiki.net (2010-09-23 19:15:00 UTC) 2010-09-23 19:30:38 +00:00
Siebrand Mazeland 1778d333d8 Localisation updates from http://translatewiki.net.
* rebuild all extension i18n files supported by Translate.
2010-09-21 21:16:06 +00:00
Trevor Parscal 1486b80472 Updated README files for former UsabilityInitiative extensions which now require MediaWiki 1.17 2010-09-21 20:26:19 +00:00
Raimond Spekking aad64f9d82 Localisation updates for core and extension messages from translatewiki.net (2010-09-21 18:45:00 UTC) 2010-09-21 18:57:55 +00:00
Trevor Parscal d5f8b1bc3a Using new group feature of ResourceLoaderFileModule objects. 2010-09-20 23:31:56 +00:00
Trevor Parscal 089b73aa5d * Moved ResourceLoader modules into the ext.* space - this is the convention that should be followed in the future
* Moved test resource to the modules folder and registered it
* Fixed tests file to use $ not $j
* Cleaned up syntax in module definitions
2010-09-20 20:06:18 +00:00
Raimond Spekking 207e8c0a2f Localisation updates for core and extension messages from translatewiki.net (2010-09-20 19:55:00 UTC) 2010-09-20 20:03:28 +00:00