kivitendo/js/follow_up.js @ 7b1da9c3
7a7f33b5 | Moritz Bunkus | function follow_up_window() {
|
||
var width = 900;
|
||||
var height = 700;
|
||||
var parm = centerParms(width, height) + ",width=" + width + ",height=" + height + ",status=yes,scrollbars=yes";
|
||||
url = "fu.pl?" +
|
||||
5d557254 | Moritz Bunkus | "INPUT_ENCODING=UTF-8&" +
|
||
7a7f33b5 | Moritz Bunkus | "action=add" + "&" +
|
||
"POPUP_MODE=1";
|
||||
var trans_rowcount = document.getElementsByName("follow_up_rowcount");
|
||||
if (typeof trans_rowcount != "undefined") {
|
||||
for (i = 1; i <= trans_rowcount[0].value; i++) {
|
||||
7b447b4d | Bernd Bleßmann | var trans_id = document.getElementsByName("follow_up_trans_id_" + i);
|
||
var trans_type = document.getElementsByName("follow_up_trans_type_" + i);
|
||||
var trans_info = document.getElementsByName("follow_up_trans_info_" + i);
|
||||
var trans_subject = document.getElementsByName("follow_up_trans_subject_" + i);
|
||||
7a7f33b5 | Moritz Bunkus | |||
url += "&" +
|
||||
38ac7c18 | Bernd Bleßmann | "trans_id_" + i + "=" + encodeURIComponent((typeof trans_id != "undefined" && trans_id.length != 0) ? trans_id[0].value : "") + "&" +
|
||
"trans_type_" + i + "=" + encodeURIComponent((typeof trans_type != "undefined" && trans_type.length != 0) ? trans_type[0].value : "") + "&" +
|
||||
"trans_info_" + i + "=" + encodeURIComponent((typeof trans_info != "undefined" && trans_info.length != 0) ? trans_info[0].value : "") + "&" +
|
||||
"trans_subject_" + i + "=" + encodeURIComponent((typeof trans_subject != "undefined" && trans_subject.length != 0) ? trans_subject[0].value : "");
|
||||
7a7f33b5 | Moritz Bunkus | }
|
||
6b063f3c | Moritz Bunkus | url += "&trans_rowcount=" + encodeURIComponent(trans_rowcount[0].value);
|
||
7a7f33b5 | Moritz Bunkus | }
|
||
//alert(url);
|
||||
window.open(url, "_new_generic", parm);
|
||||
}
|
||||
3a4d4d4f | Bernd Bleßmann | |||
function follow_up_do_select(target) {
|
||||
let ids = ($(target).data('ids')+'').split(',');
|
||||
$('.employee_check').each(function(check_idx, check_elt) {
|
||||
if (ids.indexOf($(check_elt).val()) !== -1) {
|
||||
$(check_elt).prop('checked', true);
|
||||
}
|
||||
});
|
||||
}
|