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