mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Changed to onblur instead
This commit is contained in:
@@ -62,9 +62,9 @@
|
||||
<tr class="satmode_<?php echo $mode->id ?>">
|
||||
<td id="modename_<?php echo $mode->id ?>" class="row_data" style="text-align: center; vertical-align: middle;" ><?php echo htmlentities($mode->name) ?></td>
|
||||
<td id="uplink_mode_<?php echo $mode->id ?>" class="row_data" style="text-align: center; vertical-align: middle;"><?php echo $mode->uplink_mode ?></td>
|
||||
<td id="uplink_freq_<?php echo $mode->id ?>" class="row_data" style="text-align: center; vertical-align: middle;" oninput="this.textContent = this.textContent.replace(/[^0-9]/g, '')"><?php echo $mode->uplink_freq ?></td>
|
||||
<td id="uplink_freq_<?php echo $mode->id ?>" class="row_data" style="text-align: center; vertical-align: middle;" onblur="this.textContent = this.textContent.replace(/[^0-9]/g, '')"><?php echo $mode->uplink_freq ?></td>
|
||||
<td id="downlink_mode_<?php echo $mode->id ?>" class="row_data" style="text-align: center; vertical-align: middle;"><?php echo $mode->downlink_mode ?></td>
|
||||
<td id="downlink_freq_<?php echo $mode->id ?>" class="row_data" style="text-align: center; vertical-align: middle;" oninput="this.textContent = this.textContent.replace(/[^0-9]/g, '')"><?php echo $mode->downlink_freq ?></td>
|
||||
<td id="downlink_freq_<?php echo $mode->id ?>" class="row_data" style="text-align: center; vertical-align: middle;" onblur="this.textContent = this.textContent.replace(/[^0-9]/g, '')"><?php echo $mode->downlink_freq ?></td>
|
||||
<td id="editButton" style="text-align: center; vertical-align: middle;"><button id="<?php echo $mode->id ?>" class="btn btn-sm btn-success editSatmode"><i class="fas fa-edit"></i></button></td>
|
||||
<td id="deleteButton" style="text-align: center; vertical-align: middle;"><button id="<?php echo $mode->id.'" infotext="'.htmlentities($mode->name) ?>" class="deleteSatmode btn btn-sm btn-danger"><i class="fas fa-trash-alt"></i></button></td>
|
||||
</tr>
|
||||
|
||||
@@ -409,7 +409,7 @@ function addSatMode() {
|
||||
class: 'row_data bg-danger',
|
||||
contenteditable: 'true',
|
||||
style: 'text-align: center; vertical-align: middle;',
|
||||
oninput: 'this.textContent = this.textContent.replace(/[^0-9]/g, "")'
|
||||
onblur: 'this.textContent = this.textContent.replace(/[^0-9]/g, "")'
|
||||
})
|
||||
)
|
||||
.append($('<td class="row_data" style="text-align: center; vertical-align: middle;">').append("").attr('contenteditable', 'true').addClass('bg-danger'))
|
||||
@@ -418,7 +418,7 @@ function addSatMode() {
|
||||
class: 'row_data bg-danger',
|
||||
contenteditable: 'true',
|
||||
style: 'text-align: center; vertical-align: middle;',
|
||||
oninput: 'this.textContent = this.textContent.replace(/[^0-9]/g, "")'
|
||||
onblur: 'this.textContent = this.textContent.replace(/[^0-9]/g, "")'
|
||||
})
|
||||
)
|
||||
.append($('<td id="saveButton" style="text-align: center; vertical-align: middle;">').append('<button type="button" class="btn btn-sm btn-success savenewline">Save</button>'))
|
||||
|
||||
Reference in New Issue
Block a user