Skip to content
Snippets Groups Projects
Commit 524b9a80 authored by Alex Arnaud's avatar Alex Arnaud
Browse files

hotline#18411 - Use ScripLoader addJQueryReady instead of adding manualy document.ready

parent 9427ded8
Branches
Tags
5 merge requests!715Master,!628Master,!612Master,!611Hotline 6.59,!597Hotline#18411 fix redirect script for vodeclic
......@@ -34,8 +34,7 @@ class ZendAfi_View_Helper_TagFormationVodeclic extends ZendAfi_View_Helper_TagRe
$vodeclic = Class_VodeclicLink::forUser($current_user);
Class_ScriptLoader::getInstance()
->addInlineScript("$( document ).ready(function() {".
"$('.vodeclic_link').click(function(){".
->addJQueryReady("$('.vodeclic_link').click(function(){".
"var vodeclic_window = window.open('');".
"vodeclic_window.document.write(".
"\"Veuillez patienter. Connexion en cours...".
......@@ -47,7 +46,7 @@ class ZendAfi_View_Helper_TagFormationVodeclic extends ZendAfi_View_Helper_TagRe
"vodeclic_window.location = \"$url_album\";".
"img_patience.hide();".
"},5000);".
"})})");
"})");
return '<button class="vodeclic_link">Accéder à la formation</button>'.
'<img style="display:none" src="'.URL_ADMIN_IMG.'patience.gif">';
......
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