Page MenuHomeIn-Portal Phabricator

advanced
No OneTemporary

File Metadata

Created
Sun, Jul 20, 9:04 AM

advanced

Index: branches/1.2.x/in-bulletin/elements/content_boxes/add_poll_comment.elm.tpl
===================================================================
--- branches/1.2.x/in-bulletin/elements/content_boxes/add_poll_comment.elm.tpl (revision 16831)
+++ branches/1.2.x/in-bulletin/elements/content_boxes/add_poll_comment.elm.tpl (revision 16832)
@@ -1,46 +1,46 @@
<inp2:m_DefineElement name="content">
<br/>
<script type="text/javascript">
FormManager.resetFields('poll-comment');
</script>
<inp2:poll-comment_PresetFormFields/>
<form method="post" id="poll_comment_form">
<table class="form-data fullwidth">
<inp2:m_ifnot check="m_LoggedIn">
<inp2:m_RenderElement name="inp_edit_box" prefix="poll-comment" field="GuestName" title="lu_fld_Name" style="width:200px"/>
<inp2:m_RenderElement name="inp_edit_box" prefix="poll-comment" field="GuestEmail" title="lu_fld_Email" style="width:200px"/>
</inp2:m_ifnot>
<inp2:m_RenderElement name="inp_edit_textarea" prefix="poll-comment" field="CommentBody" rows="8" cols="40" title="lu_fld_Comment" is_last="1"/>
<inp2:m_RenderElement design="inp_edit_buttons">
<input class="button" type="submit" value="<inp2:m_Phrase label='lu_btn_Create' no_editing='1'/>" />
<input class="button" type="reset" name="reset" value="<inp2:m_Phrase label='lu_btn_Reset' no_editing='1'/>" />
</inp2:m_RenderElement>
</table>
</form>
<script type="text/javascript">
$(document).ready(function() {
$('#poll_comment_form').submit(function ($e) {
FormManager.submitForm('poll-comment');
$e.preventDefault();
});
FormManager.registerForm({
prefix: 'poll-comment',
- url: '<inp2:m_Link template="#TEMPLATE#" pass="m,poll" no_amp="1" js_escape="1"/>',
+ url: '<inp2:m_Link template="#TEMPLATE#" pass="m,poll" __NO_REWRITE__="1" no_amp="1" js_escape="1"/>',
next_template: 'in-bulletin/elements/content_boxes/poll_comments.elm',
save_event: 'OnCreateAjax',
id: '<inp2:poll-comment_Field name="CommentId" db="db"/>',
form_id: 'poll_comment_form'
});
});
</script>
</inp2:m_DefineElement>
-<inp2:m_include template="platform/designs/default_design_ajax.des" pass_params="1"/>
\ No newline at end of file
+<inp2:m_include template="platform/designs/default_design_ajax.des" pass_params="1"/>

Event Timeline