Default language to english when cookie is not set

This commit is contained in:
denise 2013-01-10 15:06:45 -05:00
parent 954b65fa41
commit 4673f11d76
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
$(window).load(function(){ $(window).load(function(){
$("#username").focus(); $("#username").focus();
$("#locale").val($.cookie("airtime_locale")); $("#locale").val($.cookie("airtime_locale")!== null?$.cookie("airtime_locale"):'en_CA');
}); });
$(document).ready(function() { $(document).ready(function() {