PageSourceSearch

https://mediatheque-ardentes.com/modules/custom/opac_manage_content/js/Contents/Heart/admin-heart-form.js?v=1

js mediatheque-ardentes.com collected 2026-10-02 22:06:44 UTC 1,807 bytes, 54 lines download raw bytes

1(function ($, Drupal, drupalSettings) {
2    Drupal.behaviors.CoeurForm = {
3        attach: function (context) {
4            $(document).ready(function(){
5            load_modal_new();
6            });
7        }
8    }
9}(jQuery, Drupal, drupalSettings));
10
11const FORM_COEUR_ID = "opac_coeur_form"
12
13window.initCoeurForm = () => {
14    opacManageContentCallbackOpenModal();
15    window["initGeneriqueForm"]();
16    window["replace_ckeditor"]("/modules/custom/ls_custom_form/js/ckeditor_config/cke-html-complet.js", FORM_COEUR_ID);
17};
18
19window.closeCoeurForm = () => {
20    opacManageContentCallbackCloseModal();
21}
22
23window.callbackCoeurForm = (param) => {
24    try
25    {
26        //on v�rifie si les champs mandatory sont remplis
27        check_mandatory(FORM_COEUR_ID);
28
29        // appel aux m�thode de formulaire g�n�rique
30        var formdata = serializeForm(FORM_COEUR_ID);
31
32        //recup�ration du champ ckeditor
33        formdata["notic_avis"] = ckeditor_get_data("cke_avis_body");
34
35
36        if(formdata.notic_recomm && formdata.notic_recomm != 0 ){
37            formdata.notic_recomm = 1;
38        }else {
39            formdata.notic_recomm = 0;
40        }
41
42        callAjax("/opac-manage-content/coeur-edit-validate", "POST", formdata, FORM_COEUR_ID, (data) => {
43            errorManager(data, FORM_COEUR_ID, (data) => {
44                display_message({'message':data.message,'status':"w3-green",'time':"5",'reload':true,'audio':true},'w3-green');
45                window[param.callbackSucces](param.paramCallbackSucces);
46            }, param.scrollableSelector);
47        });
48    }
49    catch (e) {
50        reactivateValidationButton();
51        display_message({'message':e,'status':"w3-red",'time':"5",'reload':false,'audio':true},'w3-red');
52    }
53    
54}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.