#7746 closed enhancement (worksforme)
Be able to give buttons IDs on dialog
Reported by: | amy_riley75 | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.9.0 |
Component: | ui.dialog | Version: | 1.8.16 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
It would be really helpful if you were able to specify an ID for buttons on the dialog, makes it easier to test the UI
Change History (7)
comment:1 Changed 12 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:2 Changed 12 years ago by
I tried using your code you submitted but it does not put an ID on the button, the button just displays with a 0 and no id
comment:4 Changed 12 years ago by
your example works in jsbin but when i try in my system it is not working, its displaying 0 as the button text aswell.
I have just noticed I put the wrong version down I am using 1.18.14 but I have checked the changelog between the versions and it doesnt seem to have added a ID functionality to it
comment:5 Changed 12 years ago by
It seems to be a problem when using the array button display if I display buttons for the popup this way it works $( ".selector" ).dialog({ buttons: { "Ok": function() { $(this).dialog("close"); } } }); without id that is
comment:6 Changed 12 years ago by
This has worked since 1.8.5 See #4344. Unless you can provide a reduced test case showing the problem, we cannot help.
http://jsbin.com/opeyeh/edit#javascript,html