Initially disable the btn-dec

This commit is contained in:
Tom Naessens 2014-12-10 20:47:56 +01:00
parent cb94f2dbb8
commit 1e0f04ada2
2 changed files with 3 additions and 1 deletions

View file

@ -8,6 +8,8 @@ ready = ->
$('.btn-dec').on 'click', ->
increment($(this), -1)
$('.btn-dec').prop("disabled", true)
increment = (button, n) ->
# Fix the counter
counter = $(button).closest('.form_row').find('.row_counter')

View file

@ -54,8 +54,8 @@ ActiveRecord::Schema.define(version: 20141210090544) do
t.datetime "last_sign_in_at"
t.string "current_sign_in_ip"
t.string "last_sign_in_ip"
t.integer "dagschotel_id"
t.boolean "admin"
t.integer "dagschotel_id"
t.string "avatar_file_name"
t.string "avatar_content_type"
t.integer "avatar_file_size"