Remane "mibewAgentButton" id to "mibew-agent-button"

This commit is contained in:
Dmitriy Simushev 2014-12-18 13:56:05 +00:00
parent 3c1863bdae
commit e2b1fa2247

View File

@ -126,7 +126,7 @@ class Plugin extends AbstractPlugin implements PluginInterface
protected function buildRefreshJs($time) protected function buildRefreshJs($time)
{ {
$js = '(function() {' $js = '(function() {'
. 'var img = document.getElementById("mibewAgentButton").getElementsByTagName("img")[0];' . 'var img = document.getElementById("mibew-agent-button").getElementsByTagName("img")[0];'
. 'var originalSrc = img.src;' . 'var originalSrc = img.src;'
. 'setInterval(function() {' . 'setInterval(function() {'
. 'img.src = originalSrc + "&dummy=" + (new Date()).getTime();' . 'img.src = originalSrc + "&dummy=" + (new Date()).getTime();'