mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-10 15:26:10 -06:00
#2331 oc.com bug - 'Call to a member function update() on null'
This commit is contained in:
parent
548d0dd23d
commit
da4eda5766
@ -1,8 +1,7 @@
|
|||||||
function viewed_ad() {
|
function viewed_ad() {
|
||||||
var id = $('#adv-id').val();
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'get',
|
type: 'get',
|
||||||
url: '/ajax/viewed/' + id,
|
url: '/ajax/viewed/' + advID,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -55,6 +55,9 @@
|
|||||||
{% include "visiosoft.module.advs::ad-detail/partials/dropleft-edit" %}
|
{% include "visiosoft.module.advs::ad-detail/partials/dropleft-edit" %}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
let advID = "{{ adv.id }}"
|
||||||
|
</script>
|
||||||
{{ asset_add("scripts.js", "visiosoft.module.advs::js/viewed.js") }}
|
{{ asset_add("scripts.js", "visiosoft.module.advs::js/viewed.js") }}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
Loading…
Reference in New Issue
Block a user