modifica reset: map ridisegnata solo se si passa da lista a canto
This commit is contained in:
parent
0d600d73e4
commit
eedbcaee5b
|
@ -764,7 +764,7 @@ function resetFrasi(){
|
||||||
}
|
}
|
||||||
|
|
||||||
function cleanSearchResult() {
|
function cleanSearchResult() {
|
||||||
|
let updateMap=false
|
||||||
$("#headingZero").closest('.card').css("display", "none");
|
$("#headingZero").closest('.card').css("display", "none");
|
||||||
$("#collapseZero").collapse('hide');
|
$("#collapseZero").collapse('hide');
|
||||||
$("#vistaFrasi").empty()
|
$("#vistaFrasi").empty()
|
||||||
|
@ -797,12 +797,18 @@ function resetFrasi(){
|
||||||
listaPeriodiRisultato=[]
|
listaPeriodiRisultato=[]
|
||||||
listaClausoleRisultato=[]
|
listaClausoleRisultato=[]
|
||||||
resultSentences=new Set()
|
resultSentences=new Set()
|
||||||
if(cantoDisplayed=='#vistaFrasi')
|
|
||||||
|
if(cantoDisplayed=='#vistaFrasi'){
|
||||||
cantoDisplayed=prevCantoDisplayed
|
cantoDisplayed=prevCantoDisplayed
|
||||||
|
updateMap=true
|
||||||
|
}
|
||||||
|
|
||||||
$(cantoDisplayed).attr('style', 'display: d-flex;');
|
$(cantoDisplayed).attr('style', 'display: d-flex;');
|
||||||
//manageMM (cantoDisplayed)
|
//manageMM (cantoDisplayed)
|
||||||
currPage = 0;
|
currPage = 0;
|
||||||
|
if (updateMap)
|
||||||
drawMinimap(cantoDisplayed)
|
drawMinimap(cantoDisplayed)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function manageMM(name){
|
function manageMM(name){
|
||||||
|
|
Loading…
Reference in New Issue