why jquery model open on second click $('.quick_view1').attr('data-target','#quick-view1'); code example
Example 1: open bootstrap modal with javascript
$("#myModal").modal()
Example 2: html data-target modal
$('#myModal').modal('show')
$("#myModal").modal()
$('#myModal').modal('show')