mirror of
https://github.com/Mibew/mibew.git
synced 2025-04-23 23:24:42 +03:00
Fix ID style in operator's code field
This commit is contained in:
parent
b9fd28f20f
commit
5a2e48eeef
@ -38,20 +38,20 @@ class OperatorCodeGenerator extends AbstractGenerator
|
|||||||
("if(navigator.userAgent.toLowerCase().indexOf('opera') != -1 "
|
("if(navigator.userAgent.toLowerCase().indexOf('opera') != -1 "
|
||||||
. "&& window.event.preventDefault) window.event.preventDefault();"
|
. "&& window.event.preventDefault) window.event.preventDefault();"
|
||||||
. "this.newWindow = window.open(%s + '&operator_code=' "
|
. "this.newWindow = window.open(%s + '&operator_code=' "
|
||||||
. "+ document.getElementById('mibewOperatorCodeField').value, 'mibew', '%s');"
|
. "+ document.getElementById('mibew-operator-code-field').value, 'mibew', '%s');"
|
||||||
. "this.newWindow.focus();"
|
. "this.newWindow.focus();"
|
||||||
. "this.newWindow.opener=window;"
|
. "this.newWindow.opener=window;"
|
||||||
. "return false;"),
|
. "return false;"),
|
||||||
$this->getChatUrlForJs(),
|
$this->getChatUrlForJs(),
|
||||||
$this->getPopupOptions()
|
$this->getPopupOptions()
|
||||||
),
|
),
|
||||||
'id' => 'mibewOperatorCodeForm',
|
'id' => 'mibew-operator-code-form',
|
||||||
));
|
));
|
||||||
$form->addChild(HTML5\html(
|
$form->addChild(HTML5\html(
|
||||||
'input',
|
'input',
|
||||||
array(
|
array(
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'id' => 'mibewOperatorCodeField',
|
'id' => 'mibew-operator-code-field',
|
||||||
)
|
)
|
||||||
));
|
));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user