Skip to content

Commit

Permalink
fixes #278
Browse files Browse the repository at this point in the history
  • Loading branch information
henriyli committed Sep 2, 2015
1 parent 270ff82 commit 76f1431
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resource/js/docready.js
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,8 @@ $(function() { // DOCUMENT READY
localname = '';
params.uri = datum.uri;
}
if (clang && clang !== lang) { params.clang = clang; }
if ($('input[name=anylang]').is(':checked')) { params.anylang = 'on'; }
if ($('input[name=anylang]').is(':checked') && clang && clang !== lang) { params.clang = clang; }
var paramstr = $.isEmptyObject(params) ? '' : '?' + $.param(params);
if (datum.type && datum.type.indexOf('Collection') !== -1) {
location.href = datum.vocab + '/' + lang + '/groups/' + localname + paramstr;
Expand Down

0 comments on commit 76f1431

Please sign in to comment.