Commit 00bc6cea authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Remove no-longer-used focus variable


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent fe7a6f22
......@@ -97,7 +97,6 @@ function pieform_element_wysiwyg_get_headdata() {
global $USER, $_PIEFORM_WYSIWYGS;
if ($USER->get_account_preference('wysiwyg') || defined('PUBLIC')) {
$result = '<script type="text/javascript">'
. "\nvar focusEditor = '$_PIEFORM_WYSIWYGS[0]';"
. "\nPieformManager.connect('onsubmit', null, tinyMCE.triggerSave);"
. "\nPieformManager.connect('onload', null, function() {\n";
foreach ($_PIEFORM_WYSIWYGS as $editor) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment