fix BUG-110 (Enter key not submitting MoveDBox
This commit is contained in:
@@ -95,12 +95,14 @@ function MoveDBox(path_details, db_url)
|
||||
</div>
|
||||
<div class="form-row col-12 mt-2">
|
||||
<button onClick="$('#dbox').modal('hide'); return false;" class="btn btn-outline-secondary offset-1 col-2">Cancel</button>
|
||||
<button onClick="$('#dbox').modal('hide'); $('#mv_fm').submit(); return false;" class="btn btn-outline-primary col-2">Ok</button>
|
||||
<button id="move_submit" onClick="$('#dbox').modal('hide'); $('#mv_fm').submit(); return false;" class="btn btn-outline-primary col-2">Ok</button>
|
||||
</div>
|
||||
</form>
|
||||
`
|
||||
$('#dbox-content').html(div)
|
||||
$('#dbox').modal('show')
|
||||
$("#prefix").keypress(function (e) { if (e.which == 13) { $("#move_submit").click(); return false; } } )
|
||||
$("#suffix").keypress(function (e) { if (e.which == 13) { $("#move_submit").click(); return false; } } )
|
||||
}
|
||||
|
||||
// show the DBox for a delete/restore file, includes all thumbnails of selected files
|
||||
|
||||
Reference in New Issue
Block a user