Fix ID style in operator's code field

This commit is contained in:
Dmitriy Simushev 2014-12-25 13:36:11 +00:00
parent b9fd28f20f
commit 5a2e48eeef

View File

@ -38,20 +38,20 @@ class OperatorCodeGenerator extends AbstractGenerator
("if(navigator.userAgent.toLowerCase().indexOf('opera') != -1 "
. "&& window.event.preventDefault) window.event.preventDefault();"
. "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.opener=window;"
. "return false;"),
$this->getChatUrlForJs(),
$this->getPopupOptions()
),
'id' => 'mibewOperatorCodeForm',
'id' => 'mibew-operator-code-form',
));
$form->addChild(HTML5\html(
'input',
array(
'type' => 'text',
'id' => 'mibewOperatorCodeField',
'id' => 'mibew-operator-code-field',
)
));