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
ad6c6fe2
Commit
ad6c6fe2
authored
Jan 31, 2019
by
Emmanuel René Huchim Puc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
disable enter and recommends from search
parent
cfd87035
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
dataRetrieval.js
catalog/static/catalog/js/dataRetrieval.js
+10
-1
map.html
catalog/templates/map.html
+1
-1
No files found.
catalog/static/catalog/js/dataRetrieval.js
View file @
ad6c6fe2
...
@@ -228,7 +228,7 @@ $(document).ready(function () {
...
@@ -228,7 +228,7 @@ $(document).ready(function () {
var
pol_element
=
document
.
getElementById
(
'polygon-list'
);
var
pol_element
=
document
.
getElementById
(
'polygon-list'
);
var
typingTimer
;
var
typingTimer
;
var
typingInterval
=
8
00
;
//milliseconds
var
typingInterval
=
3
00
;
//milliseconds
var
productListGlobe
=
[];
var
productListGlobe
=
[];
var
cartProductList
=
[];
// this array represent DB where products will be stored
var
cartProductList
=
[];
// this array represent DB where products will be stored
var
productsToObtain
=
[];
var
productsToObtain
=
[];
...
@@ -254,6 +254,15 @@ $(document).ready(function () {
...
@@ -254,6 +254,15 @@ $(document).ready(function () {
}
}
});
});
// disable enter in search input
$
(
'#ajax-input'
).
on
(
'keyup keypress'
,
function
(
event
)
{
var
keyCode
=
event
.
keyCode
||
event
.
which
;
if
(
keyCode
===
13
)
{
event
.
preventDefault
();
return
false
;
}
});
// var PRODUCT_IN_LIST = false;
// var PRODUCT_IN_LIST = false;
// function for making POST request to productList in view.py
// function for making POST request to productList in view.py
...
...
catalog/templates/map.html
View file @
ad6c6fe2
...
@@ -118,7 +118,7 @@
...
@@ -118,7 +118,7 @@
<!-- search form -->
<!-- search form -->
<form
role=
"form"
action=
"#"
method=
"get"
class=
"sidebar-form"
>
<form
role=
"form"
action=
"#"
method=
"get"
class=
"sidebar-form"
>
<div
class=
"input-group"
>
<div
class=
"input-group"
>
<input
type=
"text"
id=
"ajax-input"
name=
"value"
class=
"form-control"
placeholder=
"Search region..."
>
<input
type=
"text"
id=
"ajax-input"
name=
"value"
autocomplete=
"off"
class=
"form-control"
placeholder=
"Search region..."
>
<span
class=
"input-group-btn"
>
<span
class=
"input-group-btn"
>
<button
type=
"button"
name=
"search"
id=
"search-btn"
class=
"btn btn-flat"
onclick=
"erase_input()"
>
<button
type=
"button"
name=
"search"
id=
"search-btn"
class=
"btn btn-flat"
onclick=
"erase_input()"
>
<i
class=
"fa fa-eraser"
></i>
<i
class=
"fa fa-eraser"
></i>
...
...
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