Last modified: 2012-03-19 19:01:18 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T37154, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 35154 - My user defined javascript does not more work
My user defined javascript does not more work
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
1.19
PC Windows XP
: Unprioritized major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-03-11 14:49 UTC by Arno Lagrange
Modified: 2012-03-19 19:01 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Arno Lagrange 2012-03-11 14:49:43 UTC
Since Mediawiki has been upgraded to 1.19, my user defined javascript does not more work. I had added some edit buttons that I found very useful. Since Mediawiki has been upgraded to 1.19 they may appear or not and now mostly not. My java console doesn't retrieve any error. 

http://eo.wikipedia.org/wiki/Uzanto:ArnoLagrange/vector.js

 '#wpTextbox1' ).wikiEditor( 'addToToolbar' ....

Now as before I work in this environment :
Project : eo.wikipedia 
Version : 1.19wmf1 (r113176)
OS : Windows XP
Browser: Firefox 10.0.2
Comment 1 Sam Reed (reedy) 2012-03-11 18:34:49 UTC
Please note bugzilla isn't really for end user technical support like this...
Comment 2 Lupo 2012-03-12 11:57:36 UTC
Anyway, do *not* use document.write() to include scripts. Try loading them through mw.loader.load().
Comment 3 Mark A. Hershberger 2012-03-12 16:53:11 UTC
Resolving INVALID since this is a support request.  Try asking here: https://eo.wikipedia.org/wiki/Village_pump
Comment 4 Arno Lagrange 2012-03-18 21:03:35 UTC
(In reply to comment #1)
> Please note bugzilla isn't really for end user technical support like this...

Because the bug appeared just after MediaWiki was upgraded, I suppose I'm not the only one user which experiences such things. It's not only an end user problem, but a java script/ mediawiki conflict. 


(In reply to comment #2)
> Anyway, do *not* use document.write() to include scripts. Try loading them
> through mw.loader.load().
I replaced all document.write() by mw.loader.load() and didn't notice any change. 

(In reply to comment #3)
> Resolving INVALID since this is a support request.  Try asking here:
> https://eo.wikipedia.org/wiki/Village_pump

As I know, nobody in the Esperanto Wikipedian community is able to resolve such problems.
Comment 5 Dan Collins 2012-03-18 21:05:53 UTC
You can always try the English Wikipedia village pump, you'll definitely get more attention there than here and there are plenty of people there who work with JS.
Comment 6 Arno Lagrange 2012-03-18 21:20:24 UTC
I guess : some class has been renamed, but I don't know which. 
My script was based on 

$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', ...

It worked since february 2011 and did no more since WM upgrading. I didn't make any change to my script. So the problem must be caused by MW. Please, somebody explain what is wrong.
Comment 7 Arno Lagrange 2012-03-18 21:21:46 UTC
(In reply to comment #5)
> You can always try the English Wikipedia village pump, you'll definitely get
> more attention there than here and there are plenty of people there who work
> with JS.

OK Thanks. I will try and I hope somebody can help.
Comment 8 Arno Lagrange 2012-03-19 19:01:18 UTC
Now the problem is fixed by replacing document.write() by mw.loader.load() with the right syntax. Thanks to all !

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links