ID:1774413
 
Resolved
winget() did not return a value for the image parameter when it was set.
BYOND Version:507
Operating System:Windows 7 Pro 64-bit
Web Browser:Chrome 40.0.2214.94
Applies to:Webclient
Status: Resolved (507.1275)

This issue has been resolved.
507.1272

Descriptive Problem Summary:
Since the WebClient doesn't render checkboxes as checkboxes, I was trying to work around it by providing my own checkbox images. I ran into a bug where winget isn't returning the name of the controls image.

Numbered Steps to Reproduce Problem:

Code Snippet (if applicable) to Reproduce Problem:
Have a button that calls ToggleCheck and passes in the name of the control being clicked.
Example: ToggleCheck EnableAttritionCheckbox
    ToggleCheck(var/t as text)
var/buttonImage = winget(src, t, "image");
alert(buttonImage)


Expected Results:
The WebClient & WinClient alert 'Checked.dmi' or the current state of the checkbox.

Actual Results:
The WebClient alerts a blank alert dialog.
The WinClient alerts 'Checked.dmi'

Workarounds:
Well, I haven't found one yet because of another issue which I'll post on our CheckBox thread.

Lummox JR resolved issue with message:
winget() did not return a value for the image parameter when it was set.