ericbarnes/Status-Board — pull request #5 by eric-famiglietti (2012-01-06 04:04:20+00:00)
Title: Add basic widget refresh functionality.

Some slight JavaScript refactoring and the addition of the ability to set widgets to refresh.

To get a widget to refresh, add a `data-interval` attribute to the widget containing the number of seconds the widget should wait before refreshing. Example:

```html

```

A few areas of thought:

* What should happen if the widget refreshes before the AJAX request has responded?
* What if the user provides a non-integer in the data-interval attribute? It seems to refresh very quickly - maybe add some primitive validation.
* Will widget data change during run time? Should the attributes be serialized once or serialized it each time the widget refreshes?