Remove the “disabled” class from fin_sondage_autre
Currently, the button still looks disabled even when more than one choice is filled. In classic_poll.js, the disabled *property* is set/unset according to isSubmitChoicesAvalaible(). The disabled *class* is not changed after being set in the template. In the bootstrap css, either the disabled class or the disabled gray out the button. Let’s just use the disabled property.
This commit is contained in:
parent
6090568446
commit
3071455882
|
@ -37,7 +37,7 @@
|
|||
</div>
|
||||
<div class="col-md-8 text-right">
|
||||
<a class="btn btn-sub" href="{$SERVER_URL}/create_poll.php?type=classic" title="{__('Step 2', 'Return to step 1')}">{__('Generic', 'Back')}</a>
|
||||
<button name="fin_sondage_autre" value="{__('Generic', 'Next')}" type="submit" class="btn btn-success disabled" title="{__('Step 2', 'Go to step 3')}">{__('Generic', 'Next')}</button>
|
||||
<button name="fin_sondage_autre" value="{__('Generic', 'Next')}" type="submit" class="btn btn-success" title="{__('Step 2', 'Go to step 3')}">{__('Generic', 'Next')}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue