Commit 27d58fea989ecbe84c1592a4d9d4a054d96880f0
1 parent
46e64d51
Exists in
master
and in
29 other branches
rails3: fix link_list_block
Showing
2 changed files
with
3 additions
and
3 deletions
Show diff stats
app/models/link_list_block.rb
app/views/box_organizer/_link_list_block.html.erb
... | ... | @@ -18,12 +18,12 @@ |
18 | 18 | </div> |
19 | 19 | |
20 | 20 | <%= link_to_function(_('New link'), nil, :class => 'button icon-add with-text') do |page| |
21 | - page.insert_html :bottom, 'links', content_tag('tr', | |
21 | + page.insert_html :bottom, 'links', j(content_tag('tr', | |
22 | 22 | content_tag('td', icon_selector('ok')) + |
23 | 23 | content_tag('td', text_field_tag('block[links][][name]', '', :maxlength => 20)) + |
24 | 24 | content_tag('td', text_field_tag('block[links][][address]', nil, :class => 'link-address'), :class => 'cel-address') + |
25 | 25 | content_tag('td', select_tag('block[links][][target]', |
26 | 26 | options_for_select(LinkListBlock::TARGET_OPTIONS, link[:target]))) |
27 | 27 | ) + |
28 | - javascript_tag("$('edit-link-list-block').scrollTop = $('edit-link-list-block').scrollHeight") | |
28 | + javascript_tag("$('edit-link-list-block').scrollTop = $('edit-link-list-block').scrollHeight")) | |
29 | 29 | end %> | ... | ... |