mirror of
https://github.com/Mibew/mibew.git
synced 2025-02-28 17:14:32 +03:00
Remane "mibewAgentButton" id to "mibew-agent-button"
This commit is contained in:
parent
506425a9e1
commit
243fa1a1d9
@ -460,9 +460,9 @@ var Mibew = {};
|
|||||||
* Accept invitation and open chat window
|
* Accept invitation and open chat window
|
||||||
*/
|
*/
|
||||||
Mibew.Invitation.accept = function() {
|
Mibew.Invitation.accept = function() {
|
||||||
if (document.getElementById('mibewAgentButton')) {
|
if (document.getElementById('mibew-agent-button')) {
|
||||||
Mibew.Invitation.trigger('accept');
|
Mibew.Invitation.trigger('accept');
|
||||||
document.getElementById('mibewAgentButton').onclick();
|
document.getElementById('mibew-agent-button').onclick();
|
||||||
Mibew.Invitation.hide();
|
Mibew.Invitation.hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -49,7 +49,7 @@ class TextGenerator extends AbstractGenerator
|
|||||||
$link = HTML5\html('a', $message);
|
$link = HTML5\html('a', $message);
|
||||||
|
|
||||||
$link->setAttributes(array(
|
$link->setAttributes(array(
|
||||||
'id' => 'mibewAgentButton',
|
'id' => 'mibew-agent-button',
|
||||||
'href' => str_replace('&', '&', $this->getChatUrl()),
|
'href' => str_replace('&', '&', $this->getChatUrl()),
|
||||||
'target' => '_blank',
|
'target' => '_blank',
|
||||||
'onclick' =>sprintf(
|
'onclick' =>sprintf(
|
||||||
|
Loading…
Reference in New Issue
Block a user