Skip to content
Snippets Groups Projects
Commit 22c36822 authored by Henri-Damien LAURENT's avatar Henri-Damien LAURENT
Browse files

hotline#179242 : dev#169475 : message 'undefined' affiché quand un utilisateur...

hotline#179242 : dev#169475 : message 'undefined' affiché quand un utilisateur supprime une notice de ses selections.
parent fab18aa8
No related merge requests found
Pipeline #23424 failed with stage
in 21 minutes and 31 seconds
......@@ -91,8 +91,8 @@ class Intonation_Library_Selection {
$url = $this->getView()->url($this->_getUrlForContext(), null, true);
$js =
sprintf("event.preventDefault(); event.stopPropagation(); var url = $(this).attr('href'); var anchors = $('a[href=\'' + url + '\']'); $.ajax({type: 'GET', url: '%s', success: function(data) {anchors.replaceWith(data.anchor);}});",
$url);
sprintf("event.preventDefault(); event.stopPropagation(); var url = $(this).attr('href'); var anchors = $('a[href=\'' + url + '\']'); $.ajax({type: 'GET', url: '%s', success: function(data) {if (data){return anchors.replaceWith(data.anchor);} return false;}});",
$url);
$popup = Class_Users::getIdentity() ? false : 'true';
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment