new_sale_reserve.js.erb 437 B

123456789101112
  1. $('#dialog h3.modal-title').html("Registro de anticipo");
  2. $('#dialog').modal({ closeOnEscape: false });
  3. // Rend$( ".selector" ).dialog({ closeOnEscape: false });er the edit form
  4. $('.modal-body').html('<%= j render("cash_registers_moves/form_sale_reserve") %>');
  5. // Show the dynamic dialog
  6. $('#dialog').modal("show");
  7. // Set focus to the first element
  8. $('#dialog').on('shown.bs.modal', function () {
  9. $('.first_input').focus()
  10. })