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

This commit is contained in:
Dmitriy Simushev 2014-12-18 13:54:46 +00:00
parent 506425a9e1
commit 243fa1a1d9
2 changed files with 3 additions and 3 deletions

View File

@ -460,9 +460,9 @@ var Mibew = {};
* Accept invitation and open chat window
*/
Mibew.Invitation.accept = function() {
if (document.getElementById('mibewAgentButton')) {
if (document.getElementById('mibew-agent-button')) {
Mibew.Invitation.trigger('accept');
document.getElementById('mibewAgentButton').onclick();
document.getElementById('mibew-agent-button').onclick();
Mibew.Invitation.hide();
}
}

View File

@ -49,7 +49,7 @@ class TextGenerator extends AbstractGenerator
$link = HTML5\html('a', $message);
$link->setAttributes(array(
'id' => 'mibewAgentButton',
'id' => 'mibew-agent-button',
'href' => str_replace('&', '&', $this->getChatUrl()),
'target' => '_blank',
'onclick' =>sprintf(