Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
GeoInt_SIDT
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mario Chirinos Colunga
GeoInt_SIDT
Commits
b4d09df6
Commit
b4d09df6
authored
May 24, 2018
by
Emmanuel René Huchim Puc
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of gitlab.geoint.mx:mario.chirinos/GeoInt_SIDT into dev
parents
8042167f
affe6dcf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
25 deletions
+13
-25
dataRetrieval.js
catalog/static/js/dataRetrieval.js
+13
-25
No files found.
catalog/static/js/dataRetrieval.js
View file @
b4d09df6
...
...
@@ -94,43 +94,31 @@ function drawPolygon(element) {
$
(
'#ajax-input'
).
focus
(
function
()
{
console
.
log
(
'in'
);
if
(
OPT_LIST_IS_HIDDEN
&&
$
(
this
).
val
()
!=
''
)
{
// console.log('makeRequest');
// makeRequest($(this).val());
$
(
'#option-list'
).
show
();
OPT_LIST_IS_HIDDEN
=
false
;
}
}).
blur
(
function
()
{
if
(
!
OPT_LIST_IS_HIDDEN
&&
$
(
this
).
val
()
!=
''
)
{
//
$('#option-list').hide();
if
(
!
OPT_LIST_IS_HIDDEN
&&
$
(
this
).
val
()
!=
''
&&
$
(
event
.
target
).
closest
(
'#option-list'
).
length
)
{
$
(
'#option-list'
).
hide
();
// var pol_element = document.getElementById('polygon-list');
// while (pol_element.firstChild) {
// pol_element.removeChild(pol_element.firstChild);
// }
OPT_LIST_IS_HIDDEN
=
true
;
}
});
// $(document).click(function (event) {
// if (!OPT_LIST_IS_HIDDEN) {
// //if click is triggered outside '#option-list' element remove the list
// if(!$(event.target).closest('#option-list').length > 0 ) {
// $('#option-list').hide();
//
// var pol_element = document.getElementById('polygon-list');
// while (pol_element.firstChild) {
// pol_element.removeChild(pol_element.firstChild);
// }
//
// OPT_LIST_IS_HIDDEN = true;
// }
// }
// });
$
(
document
).
click
(
function
(
event
)
{
if
(
!
OPT_LIST_IS_HIDDEN
)
{
//if click is triggered outside '#option-list' element remove the list
if
(
!
$
(
event
.
target
).
closest
(
'#option-list'
).
length
>
0
)
{
$
(
'#option-list'
).
hide
();
OPT_LIST_IS_HIDDEN
=
true
;
}
}
});
$
(
document
).
ready
(
function
()
{
// var input = document.getElementById('ajax-input');
// var dataList = document.getElementById('polygon-list');
var
pol_element
=
document
.
getElementById
(
'polygon-list'
);
$
(
'#ajax-input'
).
on
(
'input'
,
function
(
e
)
{
...
...
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