Skip to content

Commit

Permalink
Bugfixing
Browse files Browse the repository at this point in the history
  • Loading branch information
Oreolek committed Aug 3, 2014
1 parent 03c8886 commit 2375eb4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion games/media/games/tutorial/tutorial.game.en.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ undum.game.situations = {
todo: new undum.SimpleSituation(
"<p>Two things can happen in a situation. The character either\
<a href='links'>leaves</a> the situation and enters another one, or\
they carry out some <a href='./do-something'>action</a>. Actions may\
they carry out some <a href='./do-something?once'>action</a>. Actions may\
perform some processing, they may display some results, but\
ultimately they put the character back into the same situation\
again.</p>\
Expand Down
7 changes: 4 additions & 3 deletions games/media/js/undum.js
Original file line number Diff line number Diff line change
Expand Up @@ -1478,7 +1478,7 @@

/* This gets called when a link needs to be followed, regardless
* of whether it was user action that initiated it. */
var linkRe = /^([-a-z0-9]+|\.)(\/([-0-9a-z]+))?$/;
var linkRe = /^([-a-z0-9]+|\.)(\/([-0-9a-z]+))?(\?.+)?$/;
var processLink = function(code) {
// Check if we should do this now, or if processing is already
// underway.
Expand Down Expand Up @@ -1586,7 +1586,8 @@
// Remove links and transient sections.
$('#content a').each(function(index, element) {
var a = $(element);
if (a.hasClass('sticky') || a.attr("href").match(/[?&]sticky[=&]?)/) return;
if (a.hasClass('sticky') || a.attr("href").match(/[?&]sticky[=&]?/))
return;
a.replaceWith($("<span>").addClass("ex_link").html(a.html()));
});
var contentToHide = $('#content .transient, #content ul.options');
Expand Down Expand Up @@ -1639,7 +1640,7 @@

// If we're a once-click, remove all matching
// links.
if (a.hasClass("once") || href.match(/[?&]once[=&]?/) {
if (a.hasClass("once") || href.match(/[?&]once[=&]?/)) {
system.clearLinks(href);
}

Expand Down

0 comments on commit 2375eb4

Please sign in to comment.