mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +00:00
imp. : when click article collapse banner,single click to selection should supress
This commit is contained in:
parent
12a1ee77df
commit
037dcfd5a1
|
@ -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 */
|
||||||
|
|
|
@ -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 */
|
||||||
|
|
|
@ -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 */
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -48,7 +48,7 @@ function emitClickedEvent(link){
|
||||||
articleview.linkClickedInHtml(link);
|
articleview.linkClickedInHtml(link);
|
||||||
}catch(error)
|
}catch(error)
|
||||||
{
|
{
|
||||||
console.log(error);
|
console.error(error);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue