Bug 786945 - Cannot set value to <select> element, r=vingtuten

This commit is contained in:
Shih-Chiang Chien 2012-09-04 10:16:48 +08:00
parent ef1cfe7ce6
commit bb46865cb3

View File

@ -65,19 +65,19 @@ MozKeyboard.prototype = {
},
setSelectedOption: function mozKeyboardSetSelectedOption(index) {
this._messageManager.broadcastAsyncMessage("Forms:Select:Choice", {
this._messageManager.sendAsyncMessage("Forms:Select:Choice", {
"index": index
});
},
setValue: function mozKeyboardSetValue(value) {
this._messageManager.broadcastAsyncMessage("Forms:Input:Value", {
this._messageManager.sendAsyncMessage("Forms:Input:Value", {
"value": value
});
},
setSelectedOptions: function mozKeyboardSetSelectedOptions(indexes) {
this._messageManager.broadcastAsyncMessage("Forms:Select:Choice", {
this._messageManager.sendAsyncMessage("Forms:Select:Choice", {
"indexes": indexes || []
});
},