Hi Devs,
I'm working on integrating webdav into XWiki UI (+FoXWiki) and I kind of ran
into a small problem.
Our current xwiki-webdav-foxwiki test server is at
http://91.121.237.216/xwiki/bin/view/Main/ (you may give this a try with
firefox). Here in the attachments view, if a firefox user clicks on the
"Edit" link, it should first check if the user has foxwiki installed and if
not should trigger an installation. If the user has foxwiki installed,
foxwiki will take care of the rest of tasks.
The problem is, foxwiki install trigger code is something like this :
<code>
var params = {
"FoXWiki": { URL: "
http://91.121.237.216/xwiki/bin/download/Main/WebHome/foxwiki.xpi"quot;,
IconURL: "
http://91.121.237.216/xwiki/bin/download/Main/WebHome/foxwiki.png"quot;,
Hash:
"sha1:76920ec6392fec911e13b53ed8d23f64d75502c6",
toString: function () { return this.URL; }
}
};
InstallTrigger.install(params);
</code>
Currently i have put this code into /skins/albatross/scripts/webdav.js
This doesn't look right for obvious reasons, but where else would i put this
code ?
Please help me out :)
Thanks.
- Asiri