Fixed research page bug

* In some cases, it was impossible to implement a technology or set its
research priority, due to the JS click handler exiting with a "false"
return value.
This commit is contained in:
Emmanuel BENOîT 2012-04-08 14:29:16 +02:00
parent 6dcd59d7bc
commit 76a01cbf1c

View file

@ -45,7 +45,7 @@ $(function() {
$('.tech-line').click(function() { $('.tech-line').click(function() {
var _id = $(this).attr('id').replace(/^tl-/, ''); var _id = $(this).attr('id').replace(/^tl-/, '');
if (_id == _displayed) { if (_id == _displayed) {
return; return true;
} }
_viewingArea.html($('#tdesc-' + _id).html()); _viewingArea.html($('#tdesc-' + _id).html());
$('a', _viewingArea).click(function() { $('a', _viewingArea).click(function() {