View Issue Details

IDProjectCategoryView StatusLast Update
0015372mantisbtbugtrackerpublic2013-01-27 06:01
Reportermmmichael Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
Status newResolutionopen 
Summary0015372: Search with Autocomplete on the top right corner
Description

Hello,

currently the search is a big problem. Perfect would be an search with autocomplete on the right corner to search all entries belonging to the users access level.

Is it possible to do an sponsorship for this?

Thanks,
Michael

TagsNo tags attached.
Attached Files
patch.txt (4,598 bytes)   
�� 

[ 1 ] C:\Users\MICHAE~1\AppData\Local\Temp\Edit.txt 27.01.2013, 11:56:50

[ 2 ] C:\Users\MICHAE~1\AppData\Local\Temp\Edit1.txt 27.01.2013, 11:57:11

------------------------------------------------------------------------------------------------------------------------

=======

=======

514	* 	  echo '<td class="login-info-middle">';

   	* 	  echo '<td class="login-info-middle" style="border:1px solid red;">';

515	* 	  echo "<span class=\"italic\">$t_now</span>";

   	!>	

   	!>	$str = <<<EOT

   	!>	

   	!>	<form method="post" name="filters_closed" id="blPersonalSearch" action="view_all_set.php?f=3">

   	!>	  <input type="hidden" name="project_id" value="0">

   	!>	    <input type="hidden" name="type" value="1" />

   	!>	    <input type="hidden" name="page_number" value="1" />

   	!>	  <input type="hidden" name="view_type" value="simple" />

   	!>	  <b>Suche:</b> <input type="text" size="30" name="search" id="blSearch" value="" onkeyup="submitSearchFormDelayed();" />

   	!>	</form>

   	!>	

   	!>	<script src="/mantisbt/scripts/jquery.1.9.0.min.js"></script>

   	!>	

   	!>	<script type="text/javascript">

   	!>	var myGlobalCount = 0;

   	!>	function submitSearchFormDelayed(){

   	!>	  myGlobalCount = myGlobalCount+1;

   	!>	  setTimeout("submitSearchForm("+myGlobalCount+")",300);

   	!>	}

   	!>	  

   	!>	function submitSearchForm(currCount){

   	!>	  if(currCount>0 && currCount != myGlobalCount)

   	!>	    return; 

   	!>	    

   	!>	  myGlobalCount = 0;    

   	!>	  

   	!>	    $.ajax({type:'POST', url: 'view_all_set.php?f=3', data:$('#blPersonalSearch').serialize(), success: function(response){}});

   	!>	    $.ajax({type:'POST', url: 'view_all_bug_page.php', data:$('#blPersonalSearch').serialize(), success: function(response) {

   	!>	    var result = $(response).find("#buglist");

   	!>	        $('#blSearchResults').html(result);

   	!>	    }});

   	!>	  

   	!>	    return false;

   	!>	}

   	!>	

   	!>	

   	!>	</script>

   	!>	

   	!>	

   	!>	EOT;

   	!>	echo $str; 

   	!>	  

=======

=======

   	!>	  echo '<tr><td colspan="3"><div id="blSearchResults"></div></td></tr>'; 

=======

------------------------------------------------------------------------------------------------------------------------

 

patch.txt (4,598 bytes)   

Activities

dregad

dregad

2013-01-17 03:11

developer   ~0034804

Your requirement is really not clear and can't be evaluated. You must specify more clearly and in details what you want, e.g. screen mockup, search for what, on what criteria, what to autocomplete...

mmmichael

mmmichael

2013-01-27 06:01

reporter   ~0034919

Hello,

I integrated the feature in my local mantis installation and its absolutly amazing! At the top of the mantis Installation I have an search field with "onkeyup" Search about all mantis tickets.

Take a look at my "patch"! Because of problems with lineendings i could not create an patch out of my svn server.

Thanks,
Michael