From 1e0f04ada221b27e1873514753c8e51c0823caa1 Mon Sep 17 00:00:00 2001 From: Tom Naessens Date: Wed, 10 Dec 2014 20:47:56 +0100 Subject: [PATCH] Initially disable the btn-dec --- app/assets/javascripts/orders.js.coffee | 2 ++ db/schema.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/orders.js.coffee b/app/assets/javascripts/orders.js.coffee index 64a46e8..9eab234 100644 --- a/app/assets/javascripts/orders.js.coffee +++ b/app/assets/javascripts/orders.js.coffee @@ -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') diff --git a/db/schema.rb b/db/schema.rb index 6cd9b8b..a7496f5 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -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"