- url = "common.pl?" +
- "INPUT_ENCODING=UTF-8&" +
- "action=" + action + "&" +
- "input_name=" + encodeURIComponent(input_name) + "&" +
- "input_id=" + encodeURIComponent(input_id) + "&" +
- "formel=" + encodeURIComponent(formel);
- //alert(url);
- window.open(url, "_new_generic", parm);
+ var url = "common.pl";
+ var data = {
+ action: "calculate_qty",
+ input_name: input_name,
+ input_id: input_id,
+ formel: formel
+ };
+ kivi.popup_dialog({
+ id: 'calc_qty_dialog',
+ url: url,
+ data: data,
+ dialog: {
+ width: 500,
+ height: 400,
+ title: kivi.t8('Please enter values'),
+ }
+ });