Authored by jack.xue

fix ip validate

... ... @@ -364,12 +364,10 @@
moUrl: $("#updateModal #moUrl").val()
},
success: function (response) {
if (200!=response.status)
{
alert(response.message);
if (200 != response.status) {
alert(response.message);
}
else
{
else {
var div = document.getElementById("updateModal");
div.style.display = "none";
}
... ... @@ -419,13 +417,16 @@
moTags: $("#addModal #moTags").val(),
moUrl: $("#addModal #moUrl").val()
},
success: function () {
var div = document.getElementById("addModal");
div.style.display = "none";
},
error: function () {
alert("failed");
success: function (response) {
if (200 != response.status) {
alert(response.message);
}
else {
var div = document.getElementById("addModal");
div.style.display = "none";
}
}
}
);
... ...