protected function _getFooterHtml($element) { $ajaxUrl = $this->getUrl('mageworx/support'); $html = parent::_getFooterHtml($element); $html = '<h4>' . $this->__('Contact MageWorx Support Team or visit <a href="%s">%s</a> for additional information', 'http://www.mageworx.com/', 'MageWorx.com') . '</h4>' . $html; $html .= Mage::helper('adminhtml/js')->getScript("\n toggleReason = function(){\n if (\$('reason').getValue() != 'other'){\n \$('other_reason').up(1).hide();\n \$('other_reason').disable();\n } else {\n \$('other_reason').enable();\n \$('other_reason').up(1).show();\n }\n }\n toggleReason();\n supportForm = new varienForm(\$('{$element->getHtmlId()}'));\n mageworxSupport = function(){\n if (supportForm.validator.validate()){\n var request = new Ajax.Request(\n '{$ajaxUrl}',\n {\n method:'post',\n onSuccess: successResponse,\n parameters: Form.serialize(\$('{$element->getHtmlId()}'))\n }\n );\n }\n }\n successResponse = function(transport){\n if (transport && transport.responseText){\n try{\n response = eval('(' + transport.responseText + ')');\n }\n catch (e) {\n response = {};\n }\n }\n if ((typeof response.message) == 'string') {\n \$('ajax-response').update(response.message);\n } else {\n \$('ajax-response').update(response.message.join(\"\\n\"));\n }\n new PeriodicalExecuter(function(pe){ \$('ajax-response').update(''); pe.stop(); }, 5);\n }\n "); return $html; }
protected function _getFooterHtml($element) { $html = parent::_getFooterHtml($element); $html = '<h4>' . $this->__('Installed MageWorx Extensions') . '</h4>' . $html; return $html; }