mirror of
https://github.com/openclassify/openclassify.git
synced 2026-03-09 09:45:26 -05:00
commit
1c673257cd
File diff suppressed because one or more lines are too long
@ -26,7 +26,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Content With Block -->
|
<!-- Content With Block -->
|
||||||
{{ addBlock('ad-detail/content',{'features':features})|raw }}
|
{{ addBlock('ad-detail/content',{'features':features,'adv':adv})|raw }}
|
||||||
<!-- Content With Block -->
|
<!-- Content With Block -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -79,9 +79,6 @@
|
|||||||
type="text" placeholder="" class="hidden d-none mapVal" data-field="map_Val"
|
type="text" placeholder="" class="hidden d-none mapVal" data-field="map_Val"
|
||||||
data-field_name="map_Val" data-provides="anomaly.field_type.text">
|
data-field_name="map_Val" data-provides="anomaly.field_type.text">
|
||||||
</div><!-- section -->
|
</div><!-- section -->
|
||||||
{% if entries('advs').isEnabled('cloudinary') %}
|
|
||||||
{% include "visiosoft.module.cloudinary::cloudinary-video" %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<div class="checkbox section agreement">
|
<div class="checkbox section agreement">
|
||||||
|
|
||||||
|
|||||||
@ -1,45 +0,0 @@
|
|||||||
function crud(params, url, type, callback) {
|
|
||||||
$.ajax({
|
|
||||||
type: type,
|
|
||||||
data: params,
|
|
||||||
url: url,
|
|
||||||
success: function (response) {
|
|
||||||
console.log(response)
|
|
||||||
callback(response);
|
|
||||||
},
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function getMyMessages(type) {
|
|
||||||
crud({'type': type}, '/api/messages', 'GET', function (response) {
|
|
||||||
$('#nav-' + type).html("");
|
|
||||||
$.each(response, function (index, message) {
|
|
||||||
$('#nav-' + type).append(
|
|
||||||
addMessagesRow(
|
|
||||||
message.id,
|
|
||||||
message.sender_name,
|
|
||||||
message.receiver_name,
|
|
||||||
message.sent_at
|
|
||||||
)
|
|
||||||
);
|
|
||||||
});
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
$('.profile-ads-tab a').on('click', function () {
|
|
||||||
getMyMessages($(this).attr('data-type'))
|
|
||||||
});
|
|
||||||
|
|
||||||
getMyMessages('inbox');
|
|
||||||
|
|
||||||
function addMessagesRow(id, senderName, receiverName, sentAt) {
|
|
||||||
return `
|
|
||||||
<a href="/message/${id}/detail">
|
|
||||||
<div class="alert alert-success">
|
|
||||||
<h5 class="alert-heading">${from}:<small class="pl-1">${senderName}</small></h5>
|
|
||||||
<h5 class="alert-heading">${to}:<small class="pl-1">${receiverName}</small></h5>
|
|
||||||
<small class="mb-0">${sentAt}</small>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
`
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue
Block a user