Jump to content

Topic on Extension talk:JobSchEd

Ashimema (talkcontribs)

OK... not sure i understadn how this works...

I've installed JSWikiGantt, and checked it's working. I've then installed this extension following the isntrucitons for the normal PHP method.

I've added <jsgantt autolink='0'></jsgantt> to a page.

I'm not seeing anything special appear anywhere.. what's meant to happen?

Ericyu (talkcontribs)

I tried the JavaScript method to install and found there are two issues in this extension.

Version is 0.8.0.

  1. JobSchEd.php, line 80: addHeadItem makes the loading of JavScript too early and cause error (some MediaWiki variables are not defined yet). Change to this:

$wgOut->addScriptFile(efJobSchEdgetCSSJSLink($strMiniModulesFile)); $wgOut->addScriptFile(efJobSchEdgetCSSJSLink("lib/sftJSmsg.js")); $wgOut->addScriptFile(efJobSchEdgetCSSJSLink("date-functions.js"));

  1. edit_calend.modules.mini.js, line 17: the regular expression cannot match the example and prompt for <jsgantt autolink='0'></jsgantt>, so that line should be changed to:
    ,reGantMatch : /(<jsgantt[^>]*>)([\s\S]*)(<\/jsgantt>)/
Nux (talkcontribs)

Just as a note - this is only a problem with 1.17 and above. I don't use 1.17 (except on Wikipedia of course). New resource loader (introduced in 1.17) broke a lot of scripts. This one being one of them. Maybe if the WYSIWYG editor works I will have motivation to move my wikis and my scripts to the latest MediaWiki.

Reply to "Huh?"