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

      </td>
      <td>
        <div class="form-group">
          <select name="order_detail[#{currentNumRows}][item_id]" class="item form-control row-#{currentNumRows}">
            <option value="">Select an item...</option>
          </select>
        </div>

  event.preventDefault()
  addNewOrderRow()

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

