Skip to content
Snippets Groups Projects
Commit a1325c1d authored by Laurent's avatar Laurent
Browse files

Merge branch 'hotline#18411_fix_redirect_script_for_vodeclic' into 'hotline_6.59'

Hotline#18411 fix redirect script for vodeclic

See merge request !597
parents 04a841ec 524b9a80
Branches
Tags
4 merge requests!715Master,!628Master,!612Master,!611Hotline 6.59
- ticket 18411: Corrige le script de redirection vers la plateforme vodeclic
\ No newline at end of file
......@@ -23,6 +23,7 @@ class ZendAfi_View_Helper_TagFormationVodeclic extends ZendAfi_View_Helper_TagRe
use Trait_Translator;
public function tagFormationVodeclic($album) {
xdebug_break();
$current_user = Class_Users::getIdentity();
if (!$this->canAccessRessourceNumerique())
return '<p>'.$this->_('Vous devez être connecté sous un compte avec abonnement valide pour pouvoir accéder à la formation').'</p>';
......@@ -33,7 +34,7 @@ class ZendAfi_View_Helper_TagFormationVodeclic extends ZendAfi_View_Helper_TagRe
$vodeclic = Class_VodeclicLink::forUser($current_user);
Class_ScriptLoader::getInstance()
->addInlineScript("$('.vodeclic_link').click(function(){".
->addJQueryReady("$('.vodeclic_link').click(function(){".
"var vodeclic_window = window.open('');".
"vodeclic_window.document.write(".
"\"Veuillez patienter. Connexion en cours...".
......
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