[evolvis-commits] r17614: [#2158] from customize-pm-display, pending merges:↵ Thorsten Glaser 2011-10-21 [#2204] port PM dropdown onchange code to Tracker

mirabilos at evolvis.org mirabilos at evolvis.org
Fri Oct 21 16:15:49 CEST 2011


Author: mirabilos
Date: 2011-10-21 16:15:49 +0200 (Fri, 21 Oct 2011)
New Revision: 17614

Modified:
   trunk/gforge_base/evolvisforge-5.1/src/debian/changelog
   trunk/gforge_base/evolvisforge-5.1/src/www/tracker/browse.php
Log:
[#2158] from customize-pm-display, pending merges:
  Thorsten Glaser 2011-10-21 [#2204] port PM dropdown onchange code to Tracker


Modified: trunk/gforge_base/evolvisforge-5.1/src/debian/changelog
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/debian/changelog	2011-10-21 12:18:50 UTC (rev 17613)
+++ trunk/gforge_base/evolvisforge-5.1/src/debian/changelog	2011-10-21 14:15:49 UTC (rev 17614)
@@ -14,12 +14,13 @@
   * Restore EvolvisForge version and fix ForgePlucker header
   * Change art_cust* prefs to use JSON serialisation
   * Move php-htmlpurifier dependency to gforge-common package
+  * [#2204] Tracker dropdown “Quick Browse” onchange event activation
 
   [ Mike Esser ]
   * [#1850] Fix merge glitch
   * [#1859] [#1906] Port code from Evolvis 4.8 to 5.1
 
- -- Roland Mas <roland at gnurandal.com>  Fri, 07 Oct 2011 18:37:38 +0200
+ -- Thorsten Glaser <t.glaser at tarent.de>  Fri, 21 Oct 2011 15:23:45 +0200
 
 fusionforge (5.1.1-1+) UNRELEASED; urgency=low
 

Modified: trunk/gforge_base/evolvisforge-5.1/src/www/tracker/browse.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/www/tracker/browse.php	2011-10-21 12:18:50 UTC (rev 17613)
+++ trunk/gforge_base/evolvisforge-5.1/src/www/tracker/browse.php	2011-10-21 14:15:49 UTC (rev 17614)
@@ -294,11 +294,14 @@
 		$aux_extra_fields = $_extra_fields;
 	}
 	$status_box=$ath->renderSelect ($ath->getCustomStatusField(),$aux_extra_fields[$ath->getCustomStatusField()],false,'',true,_('Any'));
+	/*XXX what a fuckup, this… */
+	$status_box_name = 'extra_fields['.$ath->getCustomStatusField().']';
 } else {
 	if (is_array($_status)) {
 		$_status='';
 	}
 	$status_box = $ath->statusBox('_status',$_status,true,_('Any'));
+	$status_box_name = '_status';
 }
 
 // start of RDFa
@@ -379,7 +382,7 @@
 echo '
 	</div>
 	<div class="tabbertab'.($af->query_type == 'custom' ? ' tabbertabdefault' : '').'" title="'._('Simple Filtering and Sorting').'">
-	<form action="'. getStringFromServer('PHP_SELF') .'?group_id='.$group_id.'&atid='.$ath->getID().'" method="post">
+	<form name="headerForm" action="'. getStringFromServer('PHP_SELF') .'?group_id='.$group_id.'&atid='.$ath->getID().'" method="post">
 	<input type="hidden" name="query_id" value="-1" />
 	<input type="hidden" name="set" value="custom" />
 	<table width="100%" cellspacing="0">
@@ -417,6 +420,20 @@
 	</tr>
 	</table>
 	</form>
+
+	<script type="text/javascript">//<![CDATA[
+
+	function submitForm() {
+		document.headerForm.submit.click();
+	}
+
+	document.headerForm._assigned_to.onchange = submitForm;
+	document.headerForm.'.$status_box_name.'.onchange = submitForm;
+	document.headerForm._sort_col.onchange = submitForm;
+	document.headerForm._sort_ord.onchange = submitForm;
+
+	//]]></script>
+
 	</div>';
 if ($af->query_type == 'default') {
 	echo '<div class="tabbertab tabbertabdefault" title="'._('Default').'">';



More information about the evolvis-commits mailing list