Skip to content

Commit

Permalink
Merge pull request #124 from parthopdas/issue-77
Browse files Browse the repository at this point in the history
Fixes #77 regression
  • Loading branch information
parthopdas committed Feb 26, 2020
2 parents 35557cc + 0fd122f commit 6143c68
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion digitalpalireader/content/js/dict.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function startDictLookup(dictType,dictQuery,dictOpts,dictEntry) {
var tabT = "Dict: '" + (G_dictQuery != ''?G_dictQuery:toUni(G_dictEntry.split(',')[1])) + '\' in ' + st[G_dictType];

document.getElementsByTagName('title')[0].innerHTML = tabT;
$('#difb').html('');
$(`#${DPR_PAL.getDifId()}`).html('');
$('#dicthead').html('<span style="float:left" title="Click to copy permalink to clipboard" onclick="permalinkClick(\''+'dpr:dict?type='+G_dictType+(G_dictQuery?'&query=' + toUni(G_dictQuery.replace(/ /g,'_')):'') + '&opts=' + G_dictOpts.join(',') + (G_dictEntry?'&entry=' + toUni(G_dictEntry.replace(/ /g,'_')):'')+'\',1);" class="pointer hoverShow">♦&nbsp;</span>');

G_dictQuery = G_dictQuery.toLowerCase();
Expand Down
2 changes: 1 addition & 1 deletion digitalpalireader/content/js/dict_xml.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var G_phmark = 0;

var pedfileget = '';

const makeUniqueStringForCaseInsensitiveFS = s => {
function makeUniqueStringForCaseInsensitiveFS(s) {
const charToHexStr = c => Number(c.charCodeAt(0)).toString(16).padStart(2, '0').toUpperCase();

const uniqueStr =
Expand Down
2 changes: 1 addition & 1 deletion digitalpalireader/content/js/dpr_pal.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ console.log('Loading DPR_PAL...');
});
}

DPR_PAL.getDifId = () => /frombox=[^&]/.test(window.location.href) ? 'difb-bottom' : 'difb';
DPR_PAL.getDifId = () => /analysis=[^&]/.test(window.location.href) ? 'difb-bottom' : 'difb';

DPR_PAL.isDictionaryFeature = () => {
const matcher = DPR_PAL.isWeb ? /feature=dictionary/ : /dict\.htm/;
Expand Down
2 changes: 1 addition & 1 deletion digitalpalireader/content/js/format.js
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ function clearDivs(which) { // place divs to be cleared here
if (!which || which.indexOf('dict') > -1) { // dictionary search stuff
$('#dict').html('');
$('#difhist').html('');
$('#difb').html('');
$(`#${DPR_PAL.getDifId()}`).html('');
}
if (!which || which.indexOf('anf') > -1) { // analyze frame stuff
$('#anfs').html('');
Expand Down

0 comments on commit 6143c68

Please sign in to comment.