Fixes 2354d876da.
Showing the changes to player/javascript (1 of 1 file). Show all
Unified · Split
| @@ -674,7 +674,7 @@ mp.input = { · 673 unmodified lines | |||
| 674 | 674 | ||
| 675 | register_event_handler(t) | 675 | register_event_handler(t) |
| 676 | }, | 676 | }, |
| 677 | select: function () { | 677 | select: function (t) { |
| 678 | mp.commandv("script-message-to", "console", "get-input", mp.script_name, | 678 | mp.commandv("script-message-to", "console", "get-input", mp.script_name, |
| 679 | JSON.stringify({ | 679 | JSON.stringify({ |
| 680 | prompt: t.prompt, | 680 | prompt: t.prompt, |
| @@ -682,8 +682,8 @@ mp.input = { · 1 unmodified line | |||
| 682 | default_item: t.default_item, | 682 | default_item: t.default_item, |
| 683 | })); | 683 | })); |
| 684 | 684 | ||
| 685 | register_event_handler(t) | 685 | register_event_handler(t); |
| 686 | } | 686 | }, |
| 687 | terminate: function () { | 687 | terminate: function () { |
| 688 | mp.commandv("script-message-to", "console", "disable"); | 688 | mp.commandv("script-message-to", "console", "disable"); |
| 689 | }, | 689 | }, |