MantisBT: master 0551d94b

Author Committer Branch Timestamp Parent
dhx dhx master 2010-06-28 06:57:21 master b77ea9cd
Affected Issues  0011826: Remove all inline JavaScript from MantisBT (use external scripts instead)

Issue 0011826: jQuery-ise stopwatch and add JavaScript translation framework

This commit furthers the goal of removing inline JavaScript from within
the MantisBT codebase.

The time tracking stopwatch has been converted to use jQuery removing
the need to insert <script> tags outside the <head> element.

A new JavaScript translations framework (javascript_translations.php)
has been implemented that allows translation of strings for use in
scripts. Scripts can now just use the new translations[] array where the
keys match those used in the lang_get() function. For now it's necessary
to define which strings need to be translated in
javascript_translations.php. This is currently a very simple system as
we don't have many strings that need translating.

rm - javascript/dev/time_tracking_stopwatch.js Diff File
mod - bugnote_add_inc.php Diff File
rm - javascript/min/time_tracking_stopwatch.js Diff File
mod - javascript/dev/common.js Diff File
mod - core/html_api.php Diff File
mod - bug_change_status_page.php Diff File
add - javascript_translations.php Diff File