Details | Last modification | View Log | SVN | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 2074 | runge | 1 | |
| 2 | pages.buttons = { |
||
| 3 | init: function(pageInstance) |
||
| 4 | { |
||
| 5 | pageInstance.pageButtonElements = {}; |
||
| 6 | |||
| 7 | |||
| 8 | jQuery.each(pageInstance.buttons, function(button, command) |
||
| 9 | { |
||
| 10 | pageInstance.pageButtonElements[button] = $("#page-buttons-button-template").tmpl({ button: button }).appendTo(pageInstance.pageContentElement).trigger("create").find("button").on("click", function(event) |
||
| 11 | { |
||
| 12 | sendCommand(command); |
||
| 13 | |||
| 14 | event.preventDefault(); |
||
| 15 | }); |
||
| 16 | }); |
||
| 17 | } |
||
| 18 | }; |