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 " ("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',
) )
)); ));