Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.toolbar.js |
— | — | @@ -199,7 +199,8 @@ |
200 | 200 | */ |
201 | 201 | doAction : function( context, action, source ) { |
202 | 202 | // Verify that this has been called from a source that's within the toolbar |
203 | | - if ( source.closest( '.wikiEditor-ui-toolbar' ).size() ) { |
| 203 | + // 'trackAction' defined in click tracking |
| 204 | + if ($.trackAction != undefined && source.closest( '.wikiEditor-ui-toolbar' ).size() ) { |
204 | 205 | // Build a unique id for this action by tracking the parent rel attributes up to the toolbar level |
205 | 206 | var rels = []; |
206 | 207 | var step = source; |
— | — | @@ -217,7 +218,7 @@ |
218 | 219 | } |
219 | 220 | rels.reverse(); |
220 | 221 | var id = rels.join( '.' ); |
221 | | - // PERFORM CLICK TRACKING HERE! |
| 222 | + $.trackAction(id); |
222 | 223 | } |
223 | 224 | switch ( action.type ) { |
224 | 225 | case 'replace': |