Skip to content

Instantly share code, notes, and snippets.

@tnhu
Created February 7, 2011 20:55
Show Gist options
  • Save tnhu/815189 to your computer and use it in GitHub Desktop.
Save tnhu/815189 to your computer and use it in GitHub Desktop.
<% if (!$isPost) %>
<div id="modal-content">
<div cstyle="width: 500px;">
<h2><% i18n %>We appreciate your feedback.<% /i18n %></h2>
</div>
<script type="text/javascript">
E3.include('/javascripts/form-utils.js',
{
onload: function ()
{
E3.FormUtils.init(
{
formId: "form_feedback",
spinnerMessage: MooTools.lang.get('common', 'sendingFeedback'),
onSuccess: function ()
{
$('modal-content').innerHTML = this.response.html;
}
});
}
});
</script>
</div>
<% else %>
<div class="e3-modal" style="height: 370px">
<h2><% i18n %>We appreciate your feedback.<% /i18n %></h2>
<div class="form">
<div style="text-align: center;"><h3 style="line-height: 25px"><% i18n %>Thank you. Your feedback was sent successfully.<% /i18n %><br />
<% i18n %>You may close this window.<% /i18n %></h3>
</div>
</div>
</div>
<% /if %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment