website: Javascript code cleanup
authorMaxime Hadjinlian <maxime.hadjinlian@gmail.com>
Sun, 2 Nov 2014 23:58:16 +0000 (00:58 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 9 Dec 2014 19:50:26 +0000 (20:50 +0100)
commitde6d6b945407c6a81396a27cdc8e206706a685d8
treeb77b6ec56889dbcfcc7d9c41d259c852de3eee53
parent4438ccafcbf4b9ad3477e810493ed305e7ab832d
website: Javascript code cleanup

By inversing the "if (!result.error)" we gain one level of indent.
Also moving variable declarations into a more correct block of code.

Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
docs/js/buildroot.js