getButtonByValue(string) and getButtonById(string) do not work if a custom
id is specified for the buttons.
var toolbar = new YAHOO.widget.Toolbar("toolbar", {
buttons:[
{id:'button1',type:'push',label:'button1', value:'button1'},
{id:'button2',type:'push',label:'button2', value:'button2'}
]
});
// both return false
var button1 = toolbar.getButtonByValue('button1');
var button2 = toolbar.getButtonById('button2');
george puckett
Editor
2.5.2
Public
|
Date: 2009-01-24 07:24 The YUI project has been migrated from Source Forge to YUILibrary.com. |
|
Date: 2009-01-22 09:28 This issue has been resolved. The fix will be included in the next YUI |
|
Date: 2008-09-24 17:25 This bug report is being forwarded to the author or current owner of the |
|
Date: 2008-09-18 09:50 Index: editor-beta-debug.js |
| Filename | Description | Download |
|---|---|---|
| getButtonByValueAndId.html | YUI Test case | Download |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2009-01-24 07:24 | gpuckett |
| close_date | - | 2009-01-24 07:24 | gpuckett |
| allow_comments | 1 | 2009-01-24 07:24 | gpuckett |
| assigned_to | davglass | 2009-01-24 07:24 | gpuckett |
| resolution_id | None | 2009-01-22 09:28 | gpuckett |
| summary | Toolbar.getButtonBy* doesn't work with custom id's on btns | 2008-09-24 17:25 | gpuckett |
| assigned_to | nobody | 2008-09-24 17:25 | gpuckett |
| summary | Toolbar.getButtonBy* don' work with custom id | 2008-09-18 09:25 | gid79 |
| summary | Toolbar.getButtonBy* don't work with custom id | 2008-09-18 09:24 | gid79 |
| File Added | 293835: getButtonByValueAndId.html | 2008-09-18 09:24 | gid79 |