$('#dialog h3.modal-title').html("<i class='fa fa-money'></i> Agregar descuento");
$("#dialog .modal-body-content").html("<%= escape_javascript(render 'add_haggle') %>");
$("#dialog").modal("show");

 
// Set focus to the first element
$('#dialog').on('shown.bs.modal', function () {
	  $('.first_input').focus();
  });