.
This commit is contained in:
@@ -81,16 +81,6 @@ This series is not associated with any cases.
|
|||||||
action: 'post'
|
action: 'post'
|
||||||
},
|
},
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
document.getElementById("post-form").reset();
|
|
||||||
$(".posts").prepend('<div class="col-md-6">' +
|
|
||||||
'<div class="row no-gutters border rounded overflow-hidden flex-md-row mb-4 shadow-sm h-md-250 position-relative">' +
|
|
||||||
'<div class="col p-4 d-flex flex-column position-static">' +
|
|
||||||
'<h3 class="mb-0">' + json.title + '</h3>' +
|
|
||||||
'<p class="mb-auto">' + json.description + '</p>' +
|
|
||||||
'</div>' +
|
|
||||||
'</div>' +
|
|
||||||
'</div>'
|
|
||||||
)
|
|
||||||
},
|
},
|
||||||
error: function (xhr, errmsg, err) {
|
error: function (xhr, errmsg, err) {
|
||||||
console.log(xhr.status + ": " + xhr
|
console.log(xhr.status + ": " + xhr
|
||||||
|
|||||||
Reference in New Issue
Block a user