Rev 2084 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 2084 | Rev 2111 | ||
|---|---|---|---|
| Line 5... | Line 5... | ||
| 5 | pageInstance.pageButtonElements = {}; |
5 | pageInstance.pageButtonElements = {}; |
| 6 | 6 | ||
| 7 | 7 | ||
| 8 | jQuery.each(pageInstance.remotes, function(n, remote) |
8 | jQuery.each(pageInstance.remotes, function(n, remote) |
| 9 | { |
9 | { |
| 10 | sendCommand(" |
10 | sendCommand("JSON.stringify(Storage_ListParametersNative('Remote_" + remote + "'));", function(jsonData) |
| 11 | { |
11 | { |
| 12 | jQuery.each(jsonData |
12 | jQuery.each(jsonData, function(button, data) |
| 13 | { |
13 | { |
| 14 | pageInstance.pageButtonElements[remote + "_" + button] = $("#page-irremotes-button-template").tmpl({ button: button }).appendTo(pageInstance.pageContentElement).trigger("create").find("button").on("click", function(event) |
14 | pageInstance.pageButtonElements[remote + "_" + button] = $("#page-irremotes-button-template").tmpl({ button: button }).appendTo(pageInstance.pageContentElement).trigger("create").find("button").on("click", function(event) |
| 15 | { |
15 | { |
| 16 | jQuery.each(pageInstance.aliases, function(i, alias) |
16 | jQuery.each(pageInstance.aliases, function(i, alias) |
| 17 | { |
17 | { |
| 18 | sendCommand("IROut_SendBurst |
18 | sendCommand("IROut_SendBurst('" + alias + "','" + remote + "','" + button + "');"); |
| 19 | }); |
19 | }); |
| 20 | 20 | ||
| 21 | event.preventDefault(); |
21 | event.preventDefault(); |
| 22 | }); |
22 | }); |
| 23 | }); |
23 | }); |