apply type="button" on all buttons to make submit on enter work
This commit is contained in:
@ -79,8 +79,8 @@ $.fn.bookmarktable = function() {
|
||||
} else {
|
||||
cell.html(
|
||||
'<div class="btn-group btn-group-sm">' +
|
||||
'<button class="btn btn-primary bookmark-save">Save</button>' +
|
||||
'<button class="btn btn-secondary bookmark-cancel">Cancel</button>' +
|
||||
'<button type="button" class="btn btn-primary bookmark-save">Save</button>' +
|
||||
'<button type="button" class="btn btn-secondary bookmark-cancel">Cancel</button>' +
|
||||
'</div>'
|
||||
);
|
||||
}
|
||||
|
@ -5,7 +5,7 @@ $.fn.wsjtDecodingDepthsInput = function() {
|
||||
this.modeInput.val(mode);
|
||||
this.valueInput = $(inputs.get(1)).clone();
|
||||
this.valueInput.val(value);
|
||||
this.removeButton = $('<button class="btn btn-sm btn-danger remove">Remove</button>');
|
||||
this.removeButton = $('<button type="button" class="btn btn-sm btn-danger remove">Remove</button>');
|
||||
this.removeButton.data('row', this);
|
||||
this.el.append([this.modeInput, this.valueInput, this.removeButton].map(function(i) {
|
||||
return $('<td>').append(i);
|
||||
@ -46,7 +46,7 @@ $.fn.wsjtDecodingDepthsInput = function() {
|
||||
|
||||
$table.on('change', updateValue);
|
||||
$el.append($table);
|
||||
var $addButton = $('<button class="btn btn-sm btn-primary">Add...</button>');
|
||||
var $addButton = $('<button type="button" class="btn btn-sm btn-primary">Add...</button>');
|
||||
|
||||
$addButton.on('click', function() {
|
||||
var row = new WsjtDecodingDepthRow(inputs)
|
||||
|
@ -20,7 +20,7 @@ ${header}
|
||||
<div class="bookmarks">
|
||||
${bookmarks}
|
||||
<div class="buttons container">
|
||||
<button class="btn btn-primary bookmark-add">Add a new bookmark</button>
|
||||
<button type="button" class="btn btn-primary bookmark-add">Add a new bookmark</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user