Richard -
Thanks for writing back on that. I do think that passing variables, or
allowing percent-based units would be useful. I'll try to submit a
request ticket.
Interestingly, I was able to get this to work:
grid: [$('ul#days li').width(), 1],
where it's set up in an onload function, and where "ul#days li" is the
tag for each day of the week (there's an li#mon, li#tue, etc.)
It does not yet work if the window is resized after the page loads,
but I'm going to see if I can keep working on that. It looks as
though, even though it won't accept variable names, it *will* accept
jQuery-sourced DOM element values as substitutes.
In case anyone wants to follow along at home, here's the code I have
in application.js:
jQuery.fn.onload_events = function() {
$().display_calendar();
$().make_timeframes_draggable();
}
jQuery.fn.make_timeframes_draggable = function() {
$('.timeframe').draggable({
grid: [$('ul#days li').width(), 1],
});
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---