Skip to content

Commit

Permalink
[bug 834050] Add aaq.js to new mobile.
Browse files Browse the repository at this point in the history
We were missing the scripts for populating the hidden fieldsi
(useragent, os, version) in AAQ.
  • Loading branch information
rlr committed Jan 25, 2013
1 parent e76b4e4 commit e7b0d34
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions media/js/mobile/ui.js
Expand Up @@ -68,5 +68,10 @@
}
});
}

if ($('body').is('.aaq')) {
// Pre-populate form with user's system info
new AAQSystemInfo($('#question-form'));
}
});
})(jQuery)
5 changes: 4 additions & 1 deletion settings.py
Expand Up @@ -710,9 +710,12 @@ def JINJA_CONFIG():
'js/analytics.js',
),
'mobile-new': (
'js/libs/underscore.js',
'js/libs/jquery-1.8.2.min.js',
'js/mobile/ui.js',
'js/libs/modernizr-2.6.1.js',
'js/browserdetect.js',
'js/aaq.js',
'js/mobile/ui.js',
'js/analytics.js',
),
'messages': (
Expand Down

0 comments on commit e7b0d34

Please sign in to comment.