Skip to content
Snippets Groups Projects

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

Compare and
2 files
+ 3
3
Preferences
Compare changes
Files
2
@@ -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';