Commit cceefeff authored by Tomas Pettersson's avatar Tomas Pettersson 🏸

form fixes

parent c63a373d
......@@ -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;
......
This diff is collapsed.
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment