Created
December 19, 2011 05:51
-
-
Save dmonopoly/1495601 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(".memory").hover -> | |
memory = $(this).attr('id') | |
id = memory.split('_')[1] # get id of e.g. memory_4 | |
#find memory | |
time_frames = <% Memory.find(id).time_frames %> | |
for time_frame in time_frames | |
tf_id = time_frame.id | |
$("#"+tf_id).toggle() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment