Skip to content

Commit

Permalink
now wiki links are static at first and replaced by javascript:navigat…
Browse files Browse the repository at this point in the history
…eTo() later, for acessibility and search engines

git-svn-id: https://scm.arca.ime.usp.br/morcego/trunk@190 b160122e-fef4-0310-8144-9a7482f4e04c
  • Loading branch information
lfagundes committed Dec 3, 2007
1 parent 940faac commit 8264d95
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions site/src/lib/js/morcego.js
Expand Up @@ -7,6 +7,13 @@ Element.observe(window, 'load', function(e) {
$('morcego-applet').style.height = appletHeight + "px";
$('wiki-content').style.height = contentHeight + "px";

$('wiki-content').descendants().each(function(el) {
if (el.href != null && el.href.match(/tiki-index.php/)) {
el.href = el.href.replace(/^.+tiki-index.php\?page=(.+)/, "javascript:navigateTo('$1')");
}
});


xajax_loadMorcego(pageId);
});

Expand Down
2 changes: 1 addition & 1 deletion site/src/templates/styles/morcego/tiki-wiki3d.tpl
@@ -1,4 +1,4 @@
<applet ID="morcegoApplet" codebase="./lib/wiki3d" archive="morcego-0.6.0RC1.jar" code="br.arca.morcego.Morcego" width="100%" height="100%" MAYSCRIPT>
<applet ID="morcegoApplet" codebase="./lib/wiki3d" archive="morcego-0.6.0RC2.jar" code="br.arca.morcego.Morcego" width="100%" height="100%" MAYSCRIPT>
<param name="serverUrl" value="{$baseUrl}/morcego-wiki3d_xmlrpc.php">
<param name="startNode" value="{$page}">
<param name="windowWidth" value="{$wiki_3d_width}">
Expand Down

0 comments on commit 8264d95

Please sign in to comment.