Added retries to device and topic downloads. Many times devices would just get stuck downloading from the server, with the retry the device usually completes loading much quicker. Also made it so that the enter key can be pressed when typing in a page number to jump rather than having to click the jump button.
Fixed database problem in MyDevices.. was using this.index instead of i which was targeting the same device. Added onbrowserunload function in SavedDevices. If the database is still updating, it asks the user to stay on the page, else it exits.
Cleaned up code and fixed small bug with calculating total devices. (Forgot to change dirction on step == 1). Also made a failed device download into an alert message.. without the device downloaded the page length is incorrect, or the image isn\'t loaded.. etc. the problem is somewhere between the client and the server, the client gets three seconds to respond and doesn\'t so I\'m guessing the server is just at full capacity.
Changed resize function to make Gear Bag dominate the screen depending on it\' children. Modified css to make things look a little nicer. Just about done.. going to look for bugs tomorrow.