Skip to content

Commit

Permalink
Added locale to default settings so user can specify different js sdks
Browse files Browse the repository at this point in the history
  • Loading branch information
navgarcha committed Dec 30, 2011
1 parent bb8efba commit 17d1803
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Provides utility functions:
$.facebook(1234567890);

$.facebook(1234567890, {
locale: 'en_US',
initConfig: {
cookie: false,
xfbml: true
Expand Down
3 changes: 2 additions & 1 deletion jquery.facebook.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
staticPageSize: false,
eventTarget: document,
userLogged: undefined,
locale: 'en_GB',
initQueue: [],
initConfig: {
status: true,
Expand All @@ -61,7 +62,7 @@
$('body').append('<div id="fb-root" />');

// Asynchronously load in the JS SDK
$.getScript('//connect.facebook.net/en_US/all.js', loadCallback);
$.getScript('//connect.facebook.net/'+ _settings.locale +'/all.js', loadCallback);

// Ensure all external links point to target=_top to avoid nasty placeholder page
_ensureExternalLinks();
Expand Down
2 changes: 1 addition & 1 deletion jquery.facebook.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 17d1803

Please sign in to comment.