elkarte/Elkarte — pull request #995 by emanuele45 (2013-11-07 22:53:49+00:00)
Title: Admin js files - for discussion

I'm not sure how you feel about them, I always found these things almost useless (I seem to remember Ant felt the same).
Okay, the version check may have some point, though all the others are just an annoyance in most of the cases and an additional hurdle on "us" to maintain and serve, etc.

I removed those that I feel are plain useless, though, going through them I started thinking it is worth keep the table at that point.
The three left are:
* current-version.js (a one liner or so)
* detailed-version.js (another one that I feel may be removed, it's just causing confusion more than solve anything)
* latest-news.js (a big bunch of text useless for 99% of the time).

My proposal:
* drop detailed-version.js and latest-news.js,
* drop the table,
* move current-version.js to {db_prefix}settings and use a single line thing with the most recent version (I start thinking support support multiple versions is not a very cleaver idea, so the most recent should be enough),
* add another check to the admin warnings if the current version is lower than the most recent.

That way we will fetch just one tiny file (ideally just the version number, so 5 chars) and we can use it not even in javascript, but directly in php to properly output the correct version.