Version 3.3.4
This commit is contained in:
1 parent
78706903a2
commit
fb6b5baabc
2206 files changed
+409828
-382984
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user