Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1030504
in-bulletin
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Jun 16, 1:43 PM
Size
4 KB
Mime Type
text/x-diff
Expires
Wed, Jun 18, 1:43 PM (1 h, 10 m)
Engine
blob
Format
Raw Data
Handle
665465
Attached To
rMINB Modules.In-Bulletin
in-bulletin
View Options
Index: branches/5.0.x/themes/default2009/in-bulletin/elements/side_boxes/polls.elm.tpl
===================================================================
--- branches/5.0.x/themes/default2009/in-bulletin/elements/side_boxes/polls.elm.tpl (revision 12155)
+++ branches/5.0.x/themes/default2009/in-bulletin/elements/side_boxes/polls.elm.tpl (revision 12156)
@@ -1,65 +1,65 @@
<!-- POllS -->
<inp2:poll_InitList list_name="list_polls" per_page="-1"/>
<inp2:m_Capture to_var="header">
<inp2:m_phrase name="lu_title_Polls"/>
</inp2:m_Capture>
<inp2:m_DefineElement name="answer_element">
<li style="margin-bottom:5px;">
- <input type="radio" name="poll_<inp2:Field name="PollId"/>" onclick="getElementById('selected_opt_<inp2:Field name="PollId"/>').value='<inp2:Field name="AnswerId"/>';" checked> <inp2:Field name="Answer"/>
+ <input type="radio" name="poll_<inp2:Field name="PollId"/>" onclick="getElementById('selected_opt_<inp2:Field name="PollId"/>').value='<inp2:Field name="AnswerId"/>';getElementById('vote_button').disabled=false;"> <inp2:Field name="Answer"/>
</li>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="poll_element">
<div style="margin-bottom:25px;">
<div style="text-align:left;">
<strong><inp2:Field name="Question"/></strong>
</div>
<inp2:m_if check="Field" name="Image">
<br/>
<a href="<inp2:Field name="Image" format="resize:640x480"/>" class="thickbox" title="<inp2:Field field="Question"/>">
<img src="<inp2:Field name="Image" format="resize:100x100"/>" border="0" alt="<inp2:Field field="Question"/>"></a>
</inp2:m_if>
<div id="pollvote_<inp2:Field name="PollId"/>" style="text-align:left; margin-top:10px; margin-bottom:10px">
<inp2:m_if check="Field" name="RequireLogin">
<inp2:m_include t="in-bulletin/elements/side_boxes/poll_results.elm"/>
<div style="padding-top:5px; font-style: italic; font-weight: bold; text-align: center">
<inp2:m_phrase name="lu_text_GuestsLoginToVote"/>
</div>
<inp2:m_else/>
<inp2:m_if check="HasVoted">
<inp2:m_include t="in-bulletin/elements/side_boxes/poll_results.elm"/>
<div style="padding-top:5px; font-style: italic; font-weight: bold; text-align: center">
<inp2:m_phrase name="lu_text_AlreadyVoted"/>
</div>
<inp2:m_else/>
<ul style="list-style-type: none; padding-left: 0px;"><inp2:Field name="PollId" result_to_var="poll_id"/>
<inp2:poll-answer_PrintList list_name="list_answers" render_as="answer_element" direction="H" poll_id="$poll_id" requery="1"/>
</ul>
<div style="text-align: center; margin-top:8px; ">
<input type="hidden" id="selected_opt_<inp2:Field name="PollId"/>" name="selected_opt_<inp2:Field name="PollId"/>"/>
- <input class="button" type="button" onclick="aPollManager.makeVote('poll', <inp2:Field name="PollId"/>, getElementById('selected_opt_<inp2:Field name="PollId"/>').value); return false;" value="<inp2:m_Phrase label="lu_btn_Vote"/>"/>
+ <input class="button" type="button" id="vote_button" disabled onclick="aPollManager.makeVote('poll', <inp2:Field name="PollId"/>, getElementById('selected_opt_<inp2:Field name="PollId"/>').value); return false;" value="<inp2:m_Phrase label="lu_btn_Vote"/>"/>
</div>
</inp2:m_if>
</inp2:m_if>
</div>
<!--## USER COMMENTS ##-->
<inp2:m_if check="Field" name="AllowComments">
<div style="text-align:center;">
<inp2:m_ifnot check="HasCommented">
<a href="<inp2:CommentsLink t="in-bulletin/elements/content_boxes/add_poll_comment.elm" height="480" width="480"/>" title="<inp2:Field name="Question"/>" class="thickbox"/><inp2:m_phrase name="lu_title_AddComment"/></a><br>
</inp2:m_ifnot>
<a href="<inp2:CommentsLink t="in-bulletin/elements/content_boxes/poll_comments.elm" height="480" width="480"/>" title="<inp2:Field name="Question"/>" class="thickbox"/><inp2:m_phrase name="lu_title_ViewComments"/></a>
</div>
</inp2:m_if>
<!--## //USER COMMENTS ##-->
</div>
</inp2:m_DefineElement>
<div style="width:100%; text-align:center;">
<inp2:poll_PrintList list_name="list_polls" render_as="poll_element" direction="H"/>
</div>
<!-- //POllS -->
\ No newline at end of file
Event Timeline
Log In to Comment