DBC-Susteq/susteq — pull request #4 by opleban (2014-09-19 10:08:48+00:00)
Title: Updates schema, fixes view/css issues, adds transaction creation endpoint and more

Adds a migration to change the transactions table so that rfid_id is a string instead of a integer.

Fixes a view/css issue. Previously, when the charts were appended to the chart-container div on the page, the page-wrapper did not expand as well to accommodate the larger chart-container leaving gray-space in the background instead of the usual white background. I include code that recalculates the page-wrapper div height after a 500 ms timeout so that it can encompass the entire page.

Adds a TransactionsController#create and a post route '/transactions/new' that points to it. TransactionsController#creates accepts an array of object data with transaction information and automatically associates the newly created transaction with the location_id of any existing hub.

This pull request also cleans up the various javascript and css libraries no longer being used including the one for morris, raphael and various jquery.flot libraries.