Add a save button.
This commit is contained in:
parent
2443b7a193
commit
22af8ade6d
|
@ -191,6 +191,12 @@ var API_BASE = "/1.0/",
|
||||||
$form.submit();
|
$form.submit();
|
||||||
})
|
})
|
||||||
.appendTo($form);
|
.appendTo($form);
|
||||||
|
$('<br />').appendTo($form);
|
||||||
|
$('<input />').attr("type","button").val("Save")
|
||||||
|
.click(function () {
|
||||||
|
$form.submit();
|
||||||
|
})
|
||||||
|
.appendTo($form);
|
||||||
var $lat_input = $('<input />').attr("type", "hidden").val(lat).attr("id", "lat").appendTo($form);
|
var $lat_input = $('<input />').attr("type", "hidden").val(lat).attr("id", "lat").appendTo($form);
|
||||||
var $lon_input = $('<input />').attr("type", "hidden").val(lon).attr("id", "lon").appendTo($form);
|
var $lon_input = $('<input />').attr("type", "hidden").val(lon).attr("id", "lon").appendTo($form);
|
||||||
$form.submit(function(e) {
|
$form.submit(function(e) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user