DupeSearch JS

This commit is contained in:
int2001 2023-10-17 10:13:58 +00:00
parent 3bbac38a34
commit fc18464c47
No known key found for this signature in database
GPG Key ID: DFB1C13CD2DB037B

View File

@ -283,6 +283,7 @@ $(document).ready(function () {
pota: this.pota.value,
wwff: this.wwff.value,
qslimages: this.qslimages.value,
dupes: this.dupes.value,
},
dataType: 'json',
success: function (data) {
@ -502,6 +503,10 @@ $(document).ready(function () {
quickSearch('pota');
});
$('#dupeButton').click(function (event) {
dupeSearch();
});
$('#optionButton').click(function (event) {
$('#optionButton').prop("disabled", true);
$.ajax({
@ -588,6 +593,12 @@ $(document).ready(function () {
});
});
function dupeSearch() {
$('#searchForm').trigger("reset");
$("#dupes").val("Y");
$('#searchForm').submit();
}
function quickSearch(type) {
var elements = $('#qsoList tbody input:checked');
var nElements = elements.length;
@ -672,6 +683,7 @@ $(document).ready(function () {
});
$('#searchForm').on('reset', function(e) {
$("#dupes").val("");
setTimeout(function() {
$('#searchForm').submit();
});