MediaWiki talk:Common.js/Archive 4: Difference between revisions
Content deleted Content added
MalnadachBot (talk | contribs) m Fixed Lint errors. (Task 12) |
m Obsolete HTML tags "tt" swapped out for "code". Project Lint |
||
Line 23:
== escape() and replace() in importScript function ==
I read this [[MediaWiki_talk:Common.js/Archive_2#Import_Module|December discussion about import module]] but I still don't see why <
Same question for <
— [[User:Alex Smotrov|Alex Smotrov]] 20:48, 3 March 2007 (UTC)
Line 161:
== Proposal: Edittools with Javascript ==
Replace all those <code><a … onlcick=InsertTags </code> lines now generated from [[MediaWiki:Edittools]] with javascript code inside <
* ease of removing (not just hiding) unnecessary characters and adding your own
* Js code is about 10 times smaller
Line 194:
<span id="63298702036" ></span>
== Proposal: Editpage.js ==
Create another «common» javascript file <
if (document.___URL.indexOf('action=edit') > 0 || document.___URL.indexOf('action=submit') > 0)
importScript('MediaWiki:Editpage.js');
Then move from [[MediaWiki:Common.js]] → <
* code «Extra toolbar options» (mwCustomEditButtons)
* code «fix edit summary prompt for undo»
|