Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
stw
stwkit
Commits
cceefeff
Commit
cceefeff
authored
Sep 28, 2017
by
Tomas Pettersson
🏸
Browse files
form fixes
parent
c63a373d
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
src/components/cards.js
View file @
cceefeff
...
...
@@ -107,11 +107,17 @@ var STWkit;
self
.
populateCard
(
geojson
);
};
self
.
locationForm
=
L
.
DomUtil
.
create
(
'
form
'
,
'
uk-form uk-form-stacked
'
,
self
.
locationDiv
);
self
.
locationForm
.
setAttribute
(
'
novalidate
'
,
''
);
self
.
locationForm
.
onsubmit
=
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
return
false
;
};
_this
.
locationForm
.
onkeypress
=
function
(
e
)
{
var
key
=
e
.
charCode
||
e
.
keyCode
||
0
;
if
(
key
==
13
)
e
.
preventDefault
();
};
var
initials
=
(
options
&&
options
.
hasOwnProperty
(
'
initials
'
))
?
options
.
initials
:
''
;
var
showsingle
=
(
options
&&
options
.
hasOwnProperty
(
'
single
'
))
?
options
.
single
:
true
;
var
showmultiple
=
(
options
&&
options
.
hasOwnProperty
(
'
multiple
'
))
?
options
.
multiple
:
false
;
...
...
src/components/cards.js.map
View file @
cceefeff
This diff is collapsed.
Click to expand it.
src/components/cards.ts
View file @
cceefeff
...
...
@@ -133,11 +133,16 @@ module STWkit {
};
self
.
locationForm
=
<
HTMLFormElement
>
L
.
DomUtil
.
create
(
'
form
'
,
'
uk-form uk-form-stacked
'
,
self
.
locationDiv
);
self
.
locationForm
.
setAttribute
(
'
novalidate
'
,
''
);
self
.
locationForm
.
onsubmit
=
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
return
false
;
};
this
.
locationForm
.
onkeypress
=
function
(
e
)
{
var
key
=
e
.
charCode
||
e
.
keyCode
||
0
;
if
(
key
==
13
)
e
.
preventDefault
();
};
var
initials
=
(
options
&&
options
.
hasOwnProperty
(
'
initials
'
))?
options
.
initials
:
''
;
var
showsingle
=
(
options
&&
options
.
hasOwnProperty
(
'
single
'
))?
options
.
single
:
true
;
var
showmultiple
=
(
options
&&
options
.
hasOwnProperty
(
'
multiple
'
))?
options
.
multiple
:
false
;
...
...
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