Skip to content

Dialog: added options to the buttons for icons. Fixed #6830 - Allow Icons to be specified for Dialog buttons #423

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

Closed
wants to merge 1 commit into from

Conversation

djQuery
Copy link
Contributor

@djQuery djQuery commented Aug 5, 2011

@JohnArcher
Copy link

This is an absolut must-have! Thanks for doing the code! I really hope this will be worked into jquery-ui, as I really hate this nasty .find('button:contains("Cancel") stuff.

EDIT: Oh, one more thing: What about additional implementing 'lable' and 'disabled' options, like it is used in the jquery-ui-button plugin (http://jqueryui.com/demos/button/) Would make sense, at least 'lable'.

Thanks again!

Greetings!

@scottgonzalez
Copy link
Member

It looks like you linked to the wrong jsbin for your demo. Also, it looks like this will default to not showing text for buttons, since showText will default to being undefined.

@djQuery
Copy link
Contributor Author

djQuery commented Nov 17, 2011

Sorry about the demo have recreated it here. http://jsbin.com/ifiyiv/5/edit
If showText is defaulting to false it doesn't seem to be having an impact on the results.

Could have sworn that disabled was working any way.

@scottgonzalez
Copy link
Member

That demo page doesn't work either.

@djQuery
Copy link
Contributor Author

djQuery commented Dec 11, 2011

Well this one definitely works, have tested in IE, FF, Chrome, Opera and Safari
http://davidjquery.com/jquery-ui-1/demos/dialog/buttons.html

@mikesherov
Copy link
Member

@djQuery, can you please update this pull request to address @scottgonzalez's concerns mentioned here: #423 (comment)

Also, could you possibly add some unit tests supporting this change and make sure the demo page you linked to works?

@jzaefferer
Copy link
Member

Implemented the fix for #6830 in c77ca67 along with a test, inside the dialog branch, see #794.

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

Successfully merging this pull request may close these issues.

5 participants