#2331 oc.com bug - 'Call to a member function update() on null'

This commit is contained in:
Diatrex 2020-10-15 12:20:43 +03:00
parent 548d0dd23d
commit da4eda5766
2 changed files with 4 additions and 2 deletions

View File

@ -1,8 +1,7 @@
function viewed_ad() {
var id = $('#adv-id').val();
$.ajax({
type: 'get',
url: '/ajax/viewed/' + id,
url: '/ajax/viewed/' + advID,
});
}

View File

@ -55,6 +55,9 @@
{% include "visiosoft.module.advs::ad-detail/partials/dropleft-edit" %}
</section>
<script>
let advID = "{{ adv.id }}"
</script>
{{ asset_add("scripts.js", "visiosoft.module.advs::js/viewed.js") }}
{% endblock %}