diff --git a/html/js/noalyss_script.js b/html/js/noalyss_script.js index 2aac99b23..05e9a2441 100644 --- a/html/js/noalyss_script.js +++ b/html/js/noalyss_script.js @@ -4874,53 +4874,6 @@ Noalyss.prototype.input_note=function (dossier_id,jrn_id,div_prefix) alert_box(e.message); } -} -/** - * Save note, call from ajax_ledger.php act = note_input - * @param {DOMObjet} dom_form - * @returns {undefined} - */ -Noalyss.prototype.save_note=function (dom_form) -{ - try - { - waiting_box(); - let queryString=dom_form.serialize(true); - console.debug(queryString) - if ( g_enable_tinymce ) { - queryString['note_html'] = tinymce.get(queryString['input_html']).getContent(); - }else{ - queryString['note_html'] =$F($F('input_html')) - } - queryString['op'] = 'ledger'; - var x=this; - var action = new Ajax.Request( - "ajax_misc.php", - { - method: 'POST', - parameters: queryString, - onFailure: ajax_misc_failure, - onSuccess: function (req) { - remove_waiting_box(); - if (req.responseText == 'NOCONX') { - reconnect(); - return; - } - let response=req.responseXML; - let html=getNodeText(response.getElementsByTagName("code")[0]) - let ctl=getNodeText(response.getElementsByTagName("ctl")[0]); - console.debug(response); - $('note_html'+ctl).update(html); - x.refresh_note(queryString['jr_id'],queryString['gDossier']); - removeDiv('box_input_note'+queryString['div']); - } - } - ); - } catch (e) - { - alert_box(e.message); - } - } Noalyss.prototype.refresh_note=function(jrn_id,dossier_id) { @@ -5037,6 +4990,19 @@ Noalyss.prototype.parameter_test_smtp = function () } } - +/** + * Display a dialog box to search + */ +Noalyss.prototype.display_search_peppol(p_domid) +{ + try + { + + }catch(e) + { + console.error(e) + } + +} noalyss=new Noalyss(); diff --git a/include/ajax/ajax_ledger.php b/include/ajax/ajax_ledger.php index 91415fe26..e2ba9f66a 100644 --- a/include/ajax/ajax_ledger.php +++ b/include/ajax/ajax_ledger.php @@ -563,61 +563,6 @@ switch ($action) { ob_end_clean(); - break; -////------------------------------------------------ -//// Display note -////------------------------------------------------ -// case 'note_input': -// $acc_operation_note= Acc_Operation_Note::build_jrn_id($jr_id); -// try { -// $ctl="box_input_note".$div; -// $html=HtmlInput::title_box(_("Note"), $ctl); -// $textarea= Acc_Operation_Note::build_textarea($div); -// if ( $http->get('tinymce')=='true') -// $textarea->value=$acc_operation_note->getJrnNoteSql()->get("n_html"); -// else { -// $textarea->set_enrichText('plain'); -// $textarea->value=$acc_operation_note->getJrnNoteSql()->get("n_text"); -// } -// -// // start FORM -// $html.=sprintf('
"; -// } catch (Exception $exc) { -// echo $exc->getTraceAsString(); -//} -// -// break; -// case 'note_save': -////------------------------------------------------ -//// save note -////------------------------------------------------ -// -// /** -// * received parameters -// * - gDossier -// * - div -// * - jr_id -// * - note_html -// */ -// $ctl="box_input_note".$div; -// $acc_operation_note= Acc_Operation_Note::build_jrn_id($jr_id); -// $acc_operation_note->setOperation_id($jr_id); -// $acc_operation_note->setNote($http->post("note_html",'raw')); -// $acc_operation_note->save(); -// $html=$http->post("note_html","raw"); break; case 'note_refresh': $acc_operation_note= Acc_Operation_Note::build_jrn_id($jr_id);