PageSourceSearch

https://mediatheque-stjouin-bruneval.fr/modules/custom/opac_manage…/Selection/user-selection-form.js?v=1

js mediatheque-stjouin-bruneval.fr collected 2026-10-07 15:18:31 UTC 1,584 bytes, 50 lines download raw bytes

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

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.