Commit 8c45e62b by chrisndodge

Merge pull request #6661 from edx/hotfix/2015-01-16

add a missing check for an undefined object
parents c281096f 5880401d
......@@ -208,7 +208,7 @@ from django.utils.translation import ugettext as _
// before going to billing details page
// if exists then trigger click event of the apply code button
var code = $('div.code-input input#input_code').val();
if (code!= ''){
if (typeof(code) != 'undefined' && code != ''){
$('div.code-input #submit-code').trigger('click');
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment