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

Refactor: reduce amount of inline javascript #238

Merged
merged 13 commits into from
Oct 9, 2018

Conversation

xi
Copy link
Collaborator

@xi xi commented Aug 8, 2018

No description provided.

@xi xi changed the title Reduce amount of inline javascript Refactor: reduce amount of inline javascript Aug 8, 2018
@xi
Copy link
Collaborator Author

xi commented Aug 14, 2018

related to #241



@register.inclusion_tag('deletebutton.html')
def deletebutton(viewname, *args):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah yes, I like that :)

But the template changes make the button look very differently.
2018-09-07-113012_199x249_scrot

Also, should that html go to snippets/ ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought that all instances were the same, but obviously I missed something. Will look into it. Do you have some insights of which different cases exist?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -486,6 +504,7 @@ <h4>{% trans "10 last sent mails" %}</h4>
<td>{{ mail.subject }}</td>
<td><a href="{% url 'userprofile' mail.sent_by.pk %}">{{ mail.sent_by }}</a></td>
<td><span title="{{ mail.sent_at|date:'c' }}"
data-timeago
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know why that was previously wrapped inside a document.ready() ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It still is.

Copy link
Member

@octomike octomike left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very nice

@octomike octomike merged commit 3344248 into develop Oct 9, 2018
@octomike octomike deleted the refactor-lagerregal-js branch October 9, 2018 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants