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

How do you pass a class name for the addKiller #37

Closed
rh0dium opened this issue Dec 18, 2012 · 2 comments
Closed

How do you pass a class name for the addKiller #37

rh0dium opened this issue Dec 18, 2012 · 2 comments

Comments

@rh0dium
Copy link

rh0dium commented Dec 18, 2012

Hi there,

I'm curious to know how you could pass a div class id to the addKiller function?

@crucialfelix
Copy link
Owner

I'm travelling, sorry it will take a bit to respond.
On Dec 18, 2012 2:41 PM, "Steven" notifications@github.com wrote:

Hi there,

I'm curious to know how you could pass a div class id to the addKiller
function?


Reply to this email directly or view it on GitHubhttps://github.com//issues/37.

@crucialfelix
Copy link
Owner

that's an internal function, so there is no way you can pass anything to it that it doesn't use.

if you just want to style it then:

    var killer_id = 'kill_' + pk + id,
        killButton = '<span class="ui-icon ui-icon-trash" id="' + killer_id + '">X</span> ';

you can specify it with CSS this way. note that django's admin has classes and ids for its form fields and tables so you can precisely style just the field you want in the admin/model you want. that's the best way

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

No branches or pull requests

2 participants