Index: branches/liquidthreads/skins/common/lqt.js |
— | — | @@ -24,6 +24,14 @@ |
25 | 25 | if (success) { |
26 | 26 | document.getElementById('lqt_archive_go_button').className = "lqt_hidden"; |
27 | 27 | } |
| 28 | + |
| 29 | + var searchform = document.getElementById('lqt_archive_search_form'); |
| 30 | + if ( searchform ) { |
| 31 | + alert("foo"); |
| 32 | + lqt_add_event( document.getElementById('lqt_archive_start' ), 'change', function(e) { |
| 33 | + alert(e.target); |
| 34 | + } ); |
| 35 | + } |
28 | 36 | } |
29 | 37 | |
30 | 38 | addOnloadHook(lqt_on_load); |
\ No newline at end of file |
Index: branches/liquidthreads/extensions/LqtExtension.php |
— | — | @@ -726,11 +726,11 @@ |
727 | 727 | } |
728 | 728 | $any_date_check = !$use_dates ? 'checked="1"' : ''; |
729 | 729 | $these_dates_check = $use_dates ? 'checked="1"' : ''; |
730 | | - |
| 730 | + |
731 | 731 | $this->output->addHTML(<<<HTML |
732 | 732 | <form id="lqt_archive_search_form" action="{$this->title->getLocalURL()}"> |
733 | 733 | <input type="hidden" name="lqt_show_archive" value="1"> |
734 | | - |
| 734 | + <input type="hidden" name="title" value="{$this->title->getPrefixedURL()}" |
735 | 735 | <input type="radio" name="lqt_archive_filter_by_date" value="0" {$any_date_check}> |
736 | 736 | <label for="lqt_archive_filter_by_date_no">Any date</label> <br> |
737 | 737 | <input type="radio" name="lqt_archive_filter_by_date" value="1" {$these_dates_check}> |