Extension talk:JobSchEd

About this board

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?"
95.131.110.109 (talkcontribs)

Forgive My ignorance but what am I meant to do with "sftJSmsg"? How does it get installed?

Thanks

JO

95.131.110.106 (talkcontribs)

Hi, Any news on this?

95.97.39.29 (talkcontribs)
95.97.39.29 (talkcontribs)

From tha doc: Note that if you don't have sftJSmsg, you can find it in the lib folder.

95.131.110.109 (talkcontribs)

If you create Mediawiki:strJSmsg.js and copy the code into that then add an import statement to Common.js it seems to do something but now I get:

"Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; WOW64; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E) Timestamp: Mon, 12 Sep 2011 10:24:21 UTC

Message: Object expected
Line: 1180
Char: 1
Code: 0
URI: http://<servername>/ict-test-wiki/skins/common/wikibits.js?270

Message: 'this.lang.button label' is null or not an object Line: 182
Char: 2
Code: 0
URI: http://<servername>/ict-test-wiki/extensions/JobSchEd/edit_calend.modules.mini.js?1

Message: 'this.lang.gantt not found' is null or not an object Line: 192
Char: 3
Code: 0
URI: http://<servername>/ict-test-wiki/extensions/JobSchEd/edit_calend.modules.mini.js?1

95.97.39.29 (talkcontribs)

This is my conclusion about sftJSmsg: 1) sftJSmsg is a gadget, see for info: http://www.mediawiki.org/wiki/Extension:Gadgets So Install Extension:Gadgets

2) Create a new wiki page with name: MediaWiki:sftJSmsg Add the text from the file .../mediawiki/extensions/JobSchEd/lib/sftJSmsg.js

3) Add the following text to the page: MediaWiki:Gadgets-definition

  • sftJSmsg|sftJSmsg.js

I did add to a page: <jsgantt autolink='0'></jsgantt> and the edit link like in the JobSchEd manual. Result: I do not see errors, but like the 'Uh' thread, nothing happens. Both jsWikiGantt and Semantic Project Management work ok, I'm running MediaWiki 1.17 with SMW 1.6.1. I'm wondering whether the extension has been tested with mediawiki 1.17 and the new resource loader.

82.2.64.128 (talkcontribs)

Yes step 1 is okay. If you have not loaded the Gadget extension then create or add a line to common.js to import this strJSmsg.js like described on this extension to import the edit_calendar js file.

I then started with the example chart and changed and added tasks manually. The pGroup element seems to screw things up if values other than 1 or 0 is used, (I missunderstood the instructions).

However, I now get "Error parsing code with id NaN (name: undefined). The diagram is is probably not a calendar or is broken.". I don't know where the "Not a Number" applies because all elements have ids and names!!

Reply to "sftJSmsg"
There are no older topics
Return to "JobSchEd" page.