Thread:Extension talk:MsUpload/Two Icons in WikiEditor ?/reply (3)

Ok... I think I fixed this. I have no idea how to write javascript but I do know a good amount of html and css. So using that knowledge I compared back and forth between my site's underlying output and the base js for this extension which is the "msupload.js" file. Here's what I did:

In my MYSITE.com/extensions/MsUpload/js/msupload.js file I found this: var upload_tab = $(document.createElement("div")).attr('class','group').appendTo('#wikiEditor-ui-toolbar .toolbar');

In that line of code I changed the end of it from ".toolbar" to ".section-main" so that it looks like the below: var upload_tab = $(document.createElement("div")).attr('class','group').appendTo('#wikiEditor-ui-toolbar .section-main');

The problem is that using appendTo to .toolbar is not specific enough so that only one msupload button is loaded. Using appendTo to .section-main seems to be the perfect solution.

Once again, thanx to Ratin. This extension is helping me a lot with my wiki. :)