Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linking the events #6

Closed
miguelsan opened this issue Aug 22, 2013 · 2 comments
Closed

Linking the events #6

miguelsan opened this issue Aug 22, 2013 · 2 comments
Assignees
Labels

Comments

@miguelsan
Copy link

If a declare: "summary" : "<a href='http://github.com'>Test event</a>", then I get a jQm-typical full width link, but the date and the label get split in two lines with the date losing top and left padding, whilst the second event remains all in one line. That's ugly.

@ghost ghost assigned jwgmeligmeyling Aug 22, 2013
@jwgmeligmeyling
Copy link
Owner

I find passing HTML as a string rather ugly as well, since you probably want to do some event binding...
If you want to embed HTML and prepend the timestring to the first child, you could change this code in rule 209.
$("<li>" + ( ( timeString != "00:00-00:00" ) ? timeString : "" ) + " " + summary + "</li>").appendTo($listview);
with:
$("<li>").append(summary).children().andSelf().eq(0).prepend(( timeString != "00:00-00:00" ) ? timeString + " ": "" ).parent().appendTo($listview);

@jwgmeligmeyling
Copy link
Owner

I think this commit might be of interest for peaple wanting to do more with the listitems: 0f3c374 . Will be documented soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants