Skip to main content

Search and Top Navigation

#7746 closed enhancement (worksforme)

Opened September 28, 2011 01:01PM UTC

Closed September 28, 2011 01:05PM UTC

Last modified September 28, 2011 01:41PM UTC

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

Attachments (0)
Change History (7)

Changed September 28, 2011 01:05PM UTC by scottgonzalez comment:1

resolution: → worksforme
status: newclosed

Changed September 28, 2011 01:19PM UTC by amy_riley75 comment:2

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

Changed September 28, 2011 01:22PM UTC by scottgonzalez comment:3

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

Changed September 28, 2011 01:25PM UTC by amy_riley75 comment:4

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

Changed September 28, 2011 01:36PM UTC by amy_riley75 comment:5

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

Changed September 28, 2011 01:37PM UTC by scottgonzalez comment:6

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

Changed September 28, 2011 01:41PM UTC by amy_riley75 comment:7

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