map.htm edited online with Bitbucket
This commit is contained in:
parent
54098872f3
commit
3489c035a5
|
|
@ -1,4 +1,4 @@
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
<head>
|
<head>
|
||||||
<title></title>
|
<title></title>
|
||||||
|
|
@ -14,20 +14,32 @@
|
||||||
$(function () {
|
$(function () {
|
||||||
$("#dialog").dialog(
|
$("#dialog").dialog(
|
||||||
{
|
{
|
||||||
autoOpen: false,
|
autoOpen: false,
|
||||||
width: 600,
|
width: 600,
|
||||||
modal: true,
|
modal: true,
|
||||||
show: {
|
show: {
|
||||||
effect: "blind",
|
effect: "blind",
|
||||||
duration: 500
|
duration: 500
|
||||||
},
|
},
|
||||||
hide: {
|
hide: {
|
||||||
effect: "explode",
|
effect: "explode",
|
||||||
duration: 500
|
duration: 500
|
||||||
}
|
},
|
||||||
}
|
buttons: {
|
||||||
);
|
"Добавить точку": function () {
|
||||||
});
|
|
||||||
|
addNewPoint();
|
||||||
|
|
||||||
|
$(this).dialog("close");
|
||||||
|
},
|
||||||
|
|
||||||
|
"Закрыть": function () {
|
||||||
|
|
||||||
|
$(this).dialog("close");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
function addNewPoint() {
|
function addNewPoint() {
|
||||||
|
|
||||||
|
|
@ -44,25 +56,32 @@
|
||||||
|
|
||||||
// /json/categories / addpoint
|
// /json/categories / addpoint
|
||||||
|
|
||||||
$.getJSON(
|
$.ajax({
|
||||||
"/json/addpoint",
|
type: 'POST',
|
||||||
|
|
||||||
|
url: "http://wikipoints.ru/json/addpoint",
|
||||||
|
|
||||||
responsQuerry,
|
data: responsQuerry,
|
||||||
|
|
||||||
function (data) {
|
dataType: 'json',
|
||||||
|
|
||||||
|
success: function (data) {
|
||||||
|
|
||||||
alert('ok' + data);
|
alert('ok' + data);
|
||||||
//curentObj.Id = data;
|
//curentObj.Id = data;
|
||||||
|
|
||||||
}).error(function (XMLHttpRequest, textStatus, errorThrown) {
|
},
|
||||||
|
|
||||||
|
error: function (XMLHttpRequest, textStatus, errorThrown) {
|
||||||
alert("Ошибка - " + XMLHttpRequest.responseText);
|
alert("Ошибка - " + XMLHttpRequest.responseText);
|
||||||
});
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function openAddDlg() {
|
function openAddDlg() {
|
||||||
|
|
||||||
myMap.balloon.close();
|
myMap.balloon.close();
|
||||||
|
|
||||||
$('#dialog').dialog('open');
|
$('#dialog').dialog('open');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -137,7 +156,6 @@
|
||||||
Источник:<br>
|
Источник:<br>
|
||||||
<input type="text" id="source" name="source" style="width:100%;"></p>
|
<input type="text" id="source" name="source" style="width:100%;"></p>
|
||||||
|
|
||||||
<input type="submit" id="add" onclick="addNewPoint()" value="Добавить">
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue