templates/SCRIPTS/Operacion/control_fecha_envio.html.twig line 1

Open in your IDE?
  1. <!-- START SCRIPTS/Operacion/control_fecha_envio.html.twig -->
  2. <script type="text/javascript">
  3.     $(document).on("change.td", ".control-fecha-envio .date", function(e)
  4.     {
  5.         if(!$(this).find("input").val()) return false;
  6.         if ($(this).data("is_recursive")) {
  7.             return;
  8.         }
  9.         $(this).data("is_recursive", true);
  10.         let title = $(this).find("input").data("control_fecha_title") || i18n.titleControlFechaEnvio;
  11.         let message = $(this).find("input").data("control_fecha_message") || i18n.messageControlFechaEnvio;
  12.         AlertUtils.warning(title, message, null, AlertUtils.Buttons.doble, {
  13.             that: this,
  14.             onAccept: function (dialog) {
  15.                 $("section.content form").trigger("submit");
  16.                 dialog.close();
  17.                 $(e.currentTarget).data("is_recursive", false);
  18.             },
  19.             onCancel: function (dialog) {
  20.                 $(this.that).find("input").val(null);
  21.                 dialog.close();
  22.                 $(e.currentTarget).data("is_recursive", false);
  23.             }
  24.         }, null);
  25.     });
  26. </script>
  27. <!-- END SCRIPTS/Operacion/control_fecha_envio.html.twig -->