   set_reservation_onid: (user, element)->
     if user.get_value("onid")?
       element.val(user.get_value("onid"))
-      element.parent().parent().next().find("input").trigger("focus")+      element.parent().parent().next().find("input").trigger("focus")

    room_id = room_element.data("room-id")
    room_name = room_element.data("room-name")
    max_reservation = User.current().get_value("maxReservation")
    return if !max_reservation?
    @popup.find("#room-name").text(room_name)
    @popup.find("#reserver_room_id").val(room_id)

      min: 0
      max: maximum
      slide: this.slid
      change: this.slid
      values: [0, max_reservation/60/10-1]
    )
    initial_start = 0
    if new_start_time?
      initial_start = new_start_time.diff(start_time, 'minutes')/10
    this.slid(1, {values: [0, max_reservation/60/10]})
    @slider_element.slider("values", [initial_start, max_reservation/60/10+initial_start])
    @popup.show()
  slid: (event, ui) =>
    start = ui.values[0]
