Index: trunk/extensions/UsabilityInitiative/ClickTracking/ClickTracking.hooks.php |
— | — | @@ -53,12 +53,12 @@ |
54 | 54 | * Adds JavaScript |
55 | 55 | */ |
56 | 56 | public static function addJS() { |
57 | | - global $wgOut; |
| 57 | + global $wgOut, $wgClickTrackingStyleVersion; |
58 | 58 | |
59 | 59 | // For now, ClickTracking only makes sense when other usability |
60 | 60 | // extensions are enabled |
61 | 61 | //UsabilityInitiativeHooks::initialize(); |
62 | | - UsabilityInitiativeHooks::addScript( 'ClickTracking/ClickTracking.js' ); |
| 62 | + UsabilityInitiativeHooks::addScript( 'ClickTracking/ClickTracking.js', $wgClickTrackingStyleVersion ); |
63 | 63 | UsabilityInitiativeHooks::addVariables( |
64 | 64 | array( |
65 | 65 | 'wgTrackingToken' => ClickTrackingHooks::get_session_id(), |
Index: trunk/extensions/UsabilityInitiative/ClickTracking/ClickTracking.php |
— | — | @@ -18,6 +18,9 @@ |
19 | 19 | |
20 | 20 | /* Configuration */ |
21 | 21 | |
| 22 | +// Increment this value when you change ClickTracking.js |
| 23 | +$wgClickTrackingStyleVersion = 0; |
| 24 | + |
22 | 25 | // click throttle, should be seen as "1 out of every $wgClickTrackThrottle users will have it enabled" |
23 | 26 | // setting this to 1 means all users will have it enabled |
24 | 27 | // setting to a negative number will disable it for all users |