diff --git a/resources/lang/en/texts.php b/resources/lang/en/texts.php index e7004f3db101..276dde9149ab 100644 --- a/resources/lang/en/texts.php +++ b/resources/lang/en/texts.php @@ -2418,7 +2418,8 @@ $LANG = array( 'contact_custom1' => 'Contact First Custom', 'contact_custom2' => 'Contact Second Custom', 'currency' => 'Currency', - 'ofx_help' => 'In most cases the default values should work, if you\'re unable to connect it may help to adjust the settings.', + 'ofx_help' => 'In most cases the default values should work, if you\'re unable to connect it may help to :link.', + 'adjust_the_settings' => 'adjust the settings', 'item_product' => 'Item Product', 'item_notes' => 'Item Notes', diff --git a/resources/views/accounts/bank_account.blade.php b/resources/views/accounts/bank_account.blade.php index ceb9bd860937..e8ce52308095 100644 --- a/resources/views/accounts/bank_account.blade.php +++ b/resources/views/accounts/bank_account.blade.php @@ -66,7 +66,9 @@ ->addOption('101', 101) ->addOption('102', 102) ->addOption('103', 103) - ->help('ofx_help') !!} + ->help(trans('texts.ofx_help', [ + 'link' => link_to('http://www.ofxhome.com/index.php/home/directory', trans('texts.adjust_the_settings'), ['target' => '_blank', 'id' => 'ofxLink']) + ])) !!} @@ -298,7 +300,27 @@ } $(function() { - $('#bank_id').focus(); + + var banks = {!! $banks !!}; + var bankMap = {}; + + for (var i=0; i