Add a save button.

This commit is contained in:
Schuyler Erle 2012-02-22 04:46:54 -08:00
parent 2443b7a193
commit 22af8ade6d

View File

@ -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) {