Ver Mensaje Individual
  #1 (permalink)  
Antiguo 06/04/2016, 04:53
lvankoningsloo
 
Fecha de Ingreso: abril-2016
Ubicación: Castellon
Mensajes: 1
Antigüedad: 8 años
Puntos: 0
Best in place tab

Hola, buenos días.

Estoy intentado añadir tabuladores con best in place.
He seguido algunas instrucciones que hay por la web, pero no consigo hacerlo funcionar.

<td style="width:50px"><%= best_in_place calificacion, :codigo_sap, :as => :input, :html_attrs => {:tabindex => 1} %></td>
<td style="width:55px"><%= best_in_place calificacion, :referencia, :as => :input, :html_attrs => {:tabindex => 2} %></td>
<td style="width:35px"><%= best_in_place calificacion, :horno, :as => :input, :html_attrs => {:tabindex => 3}%></td>

y en coffee script

$ ->
$('span.best_in_place[data-html-attrs]').each ->
el = $(this)
attrs = el.data('html-attrs')
el.attr('tabindex', attrs['tabindex']) if attrs and attrs['tabindex']
.focus ->
el = $(this)
el.click()

Alguien sabe como hacerlo?

Gracias
Lourdes