best_in_place icon indicating copy to clipboard operation
best_in_place copied to clipboard

classes parameter not being picked up by js

Open Carpela opened this issue 8 years ago • 0 comments

Am using the recommended:

= best_in_place @user, :name, :classes => 'highlight_on_success'

But I'm not getting any response from it with

$('.highlight_on_success').bind("ajax:success", function(){$(this).closest('tr').effect('highlight');}); 

If I use straight

$('.best_in_place').bind("ajax:success", function(){$(this).closest('tr').effect('highlight');});

This works, but I can't tie it to a specific best_in_place field (I have multiple on the page).

It also doesn't show up in the css, the only class related to the best inplace object in the html is the .best_in_place one.

Carpela avatar Nov 22 '16 12:11 Carpela