Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Daniel CAZAL
co2
Commits
c6d1be89
Commit
c6d1be89
authored
Jan 30, 2019
by
Raph El
Browse files
Hotfix result map after search
parent
ee38ba9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
assets/js/default/directory.js
View file @
c6d1be89
...
...
@@ -160,7 +160,6 @@ function autoCompleteSearch(indexMin, indexMax, callBack){
$
(
"
.btn-start-search
"
).
addClass
(
"
bg-azure
"
);
$
(
"
.btn-start-search
"
).
removeClass
(
"
bg-dark
"
);
//if(indexMin > 0)
if
(
indexMin
==
0
||
(
typeof
pageEvent
!=
"
undefined
"
&&
pageEvent
)){
simpleScroll
(
scrollH
,
400
);
$
(
"
#dropdown_search
"
).
html
(
"
<div class='col-md-12 col-sm-12 text-center search-loader text-dark'>
"
+
...
...
@@ -293,15 +292,15 @@ function autoCompleteSearch(indexMin, indexMax, callBack){
if
(
searchObject
.
initType
==
"
events
"
&&
typeof
showResultInCalendar
!=
"
undefined
"
&&
searchObject
.
text
==
""
)
showResultInCalendar
(
results
);
if
(
mapElements
.
length
==
0
)
mapElements
=
results
;
else
$
.
extend
(
mapElements
,
results
);
if
(
mapElements
.
length
==
0
||
indexMin
==
0
)
mapElements
=
results
;
else
$
.
extend
(
mapElements
,
results
);
if
(
location
.
hash
==
"
#search
"
&&
searchObject
.
types
.
length
>
1
)
directory
.
switcherViewer
(
mapElements
);
else
directory
.
switcherViewer
(
results
);
//affiche les éléments sur la carte
console
.
log
(
"
mapElements
"
,
results
);
Sig
.
clearMap
();
Sig
.
showMapElements
(
Sig
.
map
,
mapElements
,
"
search
"
,
"
Résultats de votre recherche
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment