imp. : when click article collapse banner,single click to selection should supress

This commit is contained in:
yifang 2022-01-20 20:43:42 +08:00
parent 12a1ee77df
commit 037dcfd5a1
No known key found for this signature in database
GPG key ID: 8765B97BD0EC1AC4
5 changed files with 18 additions and 2 deletions

View file

@ -126,6 +126,7 @@ a:hover {
.gdarticleseparator { .gdarticleseparator {
display: none; display: none;
clear:both;
} }
/* The 'From ' string which preceeds dictionary name in the heading */ /* The 'From ' string which preceeds dictionary name in the heading */

View file

@ -47,6 +47,7 @@ a:hover
.gdarticleseparator .gdarticleseparator
{ {
display: none; display: none;
clear: both;
} }
/* Hide the 'From ' string which precedes dictionary name in the heading */ /* Hide the 'From ' string which precedes dictionary name in the heading */

View file

@ -70,6 +70,9 @@ pre
/* Appears between the articles */ /* Appears between the articles */
.gdarticleseparator .gdarticleseparator
{ {
width: 100%;
display: inline-block;
clear: both;
} }
/* Dictionary query error description string */ /* Dictionary query error description string */

View file

@ -61,7 +61,18 @@ function gdExpandOptPart(expanderId, optionalId) {
} }
}; };
function emitClickedEvent(){
try{
articleview.linkClickedInHtml("");
}catch(error)
{
console.error(error);
}
}
function gdExpandArticle(id) { function gdExpandArticle(id) {
emitClickedEvent();
elem = document.getElementById('gdarticlefrom-' + id); elem = document.getElementById('gdarticlefrom-' + id);
ico = document.getElementById('expandicon-' + id); ico = document.getElementById('expandicon-' + id);
art = document.getElementById('gdfrom-' + id); art = document.getElementById('gdfrom-' + id);

View file

@ -48,7 +48,7 @@ function emitClickedEvent(link){
articleview.linkClickedInHtml(link); articleview.linkClickedInHtml(link);
}catch(error) }catch(error)
{ {
console.log(error); console.error(error);
} }
} }