Version 3.3.4

This commit is contained in:
Neo committed 2025-12-19 00:35:52 -08:00
1 parent 78706903a2
commit fb6b5baabc
2206 files changed
+409828 -382984

No files matched your search

+12 -4
View File
@@ -158,8 +158,9 @@ _poll.prototype.poll = {
*/
submitCheckPoll: function(e)
{
var stop = false;
var stop = false;
var reason = 'choices';
if( ipb.poll._choices.size() > 0 )
{
ipb.poll._choices.each( function( q ){
@@ -179,12 +180,19 @@ _poll.prototype.poll = {
stop = true;
return;
}
if ( ! $('question_' + q.key + '_wrap').down('input.input_text').value )
{
stop = true;
reason = 'questions';
return;
}
});
if( stop == true )
{
ipb.poll.popup.show();
alert( ipb.lang['poll_not_enough_choices'] );
alert( ( reason == 'choices' ) ? ipb.lang['poll_not_enough_choices'] : ipb.lang['poll_questions_missing'] );
Event.stop(e);
return false;
}