kopia lustrzana https://github.com/magicbug/Cloudlog
eQSL default msg (js & css)
rodzic
d3a1f9ab76
commit
af0e3e3d0c
|
@ -624,3 +624,8 @@ table.dataTable tfoot td {
|
|||
.orange {
|
||||
color: var(--orange);
|
||||
}
|
||||
|
||||
.qso_eqsl_qslmsg_update {
|
||||
cursor: pointer;
|
||||
margin-left: 10px;
|
||||
}
|
|
@ -294,6 +294,9 @@ function qso_edit(id) {
|
|||
});
|
||||
}
|
||||
});
|
||||
// [eQSL default msg] change value (for qso edit page) //
|
||||
$('.modal-content #stationProfile').change(function() { qso_set_eqsl_qslmsg($('.modal-content #stationProfile').val(),false,'.modal-content'); });
|
||||
$('.modal-content .qso_eqsl_qslmsg_update').off('click').on('click',function() { qso_set_eqsl_qslmsg($('.modal-content #stationProfile').val(),true,'.modal-content'); });
|
||||
},
|
||||
});
|
||||
}
|
||||
|
@ -543,3 +546,22 @@ function displayQsl(id) {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// [eQSL default msg] function to load default qslmsg to qslmsg field on qso add/edit //
|
||||
function qso_set_eqsl_qslmsg(station_id, force_diff_to_origin=false, object='') {
|
||||
$.ajax({
|
||||
url: base_url+'index.php/station/get_options',
|
||||
type: 'post', data: {'option_type':'eqsl_default_qslmsg','option_name':'key_station_id','option_key':station_id },
|
||||
success: function(res) {
|
||||
if (typeof res.eqsl_default_qslmsg !== "undefined") {
|
||||
object = (object!='')?(object+' '):'';
|
||||
if ((force_diff_to_origin) || ($(object+'#qslmsg').val()==$(object+'#qslmsg_hide').html())) {
|
||||
$(object+'#qslmsg').val(res.eqsl_default_qslmsg);
|
||||
$(object+'#qslmsg_hide').html(res.eqsl_default_qslmsg);
|
||||
}
|
||||
}
|
||||
},
|
||||
error: function() { },
|
||||
});
|
||||
}
|
|
@ -760,6 +760,7 @@ $(".js-save-to-log").click(function () {
|
|||
iota_ref: iota_ref,
|
||||
pota_ref: pota_ref,
|
||||
wwff_ref: wwff_ref,
|
||||
isSFLE: true
|
||||
},
|
||||
success: function (result) {},
|
||||
});
|
||||
|
|
Ładowanie…
Reference in New Issue