Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Wrong redirect #3276
Yes, there is a bug on
<form class="form-horizontal"> // zone code... <div class="form-group required"> <label class="col-sm-2 control-label" for="input-postcode"><?php echo $entry_postcode; ?></label> <div class="col-sm-10"> <input type="text" name="postcode" value="<?php echo $postcode; ?>" placeholder="<?php echo $entry_postcode; ?>" id="input-postcode" class="form-control" /> </div> </div> <input type="button" value="<?php echo $button_quote; ?>" id="button-quote" data-loading-text="<?php echo $text_loading; ?>" class="btn btn-primary" /> </form>
... The default way the browser handles the enter (since there's button in the formulary), on formularies, it's to submit with default settings (it performs a GET call with and empty action) and probably review have the same issue.
The problem is, the button is supposed to be performing an ajax call.
Either the way is to handle the enter press on any fields, to perform the button click, os just prevent the default submit action.
To be honest, I think it's better to turn the enter action to behave as clicking the button, but's that's just my opinion.