Skip to content

Commit

Permalink
[K6.2] On polls when click remove option at first the adding options
Browse files Browse the repository at this point in the history
  • Loading branch information
xillibit committed Nov 10, 2023
1 parent e510be6 commit 8d67fb5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/media/kunena/core/js/plugins/polls/dialogs/polls.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,13 @@ CKEDITOR.dialog.add( 'pollsDialog', function( editor ) {
label: Joomla.Text._('COM_KUNENA_POLL_REMOVE_POLL_OPTION'),
title: Joomla.Text._('COM_KUNENA_POLL_REMOVE_POLL_OPTION'),
onClick: function() {
if (options > 0) {
// this = CKEDITOR.ui.dialog.button
jQuery('#field_option' + options).remove();
jQuery('#labeloption' + options).remove();
options--;

}

// TODO : show button hide if it was hidden
}
},
Expand Down

0 comments on commit 8d67fb5

Please sign in to comment.