diff -r d33b05ae8653 modules/tv/tmpl/default/detail.php --- a/modules/tv/tmpl/default/detail.php Sun Apr 13 10:44:27 2008 +1000 +++ b/modules/tv/tmpl/default/detail.php Sun Apr 13 13:10:48 2008 +1000 @@ -80,6 +80,28 @@ : ''); } } + + function dblclick_schedopt(e) { + var radioButton; + if (e.target) + radioButton = e.target.previousSibling.previousSibling; + else if (e.srcElement) + radioButton = e.srcElement.previousSibling.previousSibling; + else + throw "Can't find event source element"; + + if (radioButton == null || radioButton.tagName != 'INPUT' || radioButton.type != 'radio') + throw "Couldn't find input radiobutton"; + + radioButton.checked = true; + var hiddenSubmit = document.createElement('input'); + hiddenSubmit.type = "hidden"; + hiddenSubmit.name = "save"; + hiddenSubmit.value = ""; + document.forms["program_detail"].appendChild(hiddenSubmit); + document.forms["program_detail"].submit() + } + // --> @@ -415,7 +437,7 @@ type != rectype_override && $schedule->type != rectype_dontrec) { ?>

:

-