r22855 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22854‎ | r22855 | r22856 >
Date:23:57, 8 June 2007
Author:david
Status:old
Tags:
Comment:
fixed stupid bug, playign with JS.
Modified paths:
  • /branches/liquidthreads/extensions/LqtExtension.php (modified) (history)
  • /branches/liquidthreads/skins/common/lqt.js (modified) (history)

Diff [purge]

Index: branches/liquidthreads/skins/common/lqt.js
@@ -24,6 +24,14 @@
2525 if (success) {
2626 document.getElementById('lqt_archive_go_button').className = "lqt_hidden";
2727 }
 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+ }
2836 }
2937
3038 addOnloadHook(lqt_on_load);
\ No newline at end of file
Index: branches/liquidthreads/extensions/LqtExtension.php
@@ -726,11 +726,11 @@
727727 }
728728 $any_date_check = !$use_dates ? 'checked="1"' : '';
729729 $these_dates_check = $use_dates ? 'checked="1"' : '';
730 -
 730+
731731 $this->output->addHTML(<<<HTML
732732 <form id="lqt_archive_search_form" action="{$this->title->getLocalURL()}">
733733 <input type="hidden" name="lqt_show_archive" value="1">
734 -
 734+ <input type="hidden" name="title" value="{$this->title->getPrefixedURL()}"
735735 <input type="radio" name="lqt_archive_filter_by_date" value="0" {$any_date_check}>
736736 <label for="lqt_archive_filter_by_date_no">Any date</label> <br>
737737 <input type="radio" name="lqt_archive_filter_by_date" value="1" {$these_dates_check}>

Status & tagging log