   event.preventDefault()
   addNewOrderRow()
 
-$(document).on "click", ".delete-tracking-number", (event) ->
+$(document).on "click", ".delete-row", (event) ->
   event.preventDefault()
   $(@).parents("tr:first").remove()
 

        <div class="form-group">
          <input name="order_detail[#{currentNumRows}][quantity]" class="quantity form-control row-#{currentNumRows}" placeholder="Select an Item..."/>
        </div>
      </td>
    </tr>
  """)

  populateQuantity selected, quantity_element

$(document).on "page:change", ->
  if $("#new-order-table").length > 0
    $.guard(".unique").using("different");
    addNewOrderRow()
