Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#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 8 years ago by Scott González

Resolution: worksforme
Status: newclosed

comment:2 Changed 8 years ago by amy_riley75

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:3 Changed 8 years ago by Scott González

You're saying the jsbin doesn't work for you?

comment:4 Changed 8 years ago by amy_riley75

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 8 years ago by amy_riley75

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 8 years ago by Scott González

This has worked since 1.8.5 See #4344. Unless you can provide a reduced test case showing the problem, we cannot help.

comment:7 Changed 8 years ago by amy_riley75

thanks for your help I will investigate out versions we are using

Note: See TracTickets for help on using tickets.