// manually merge of modules search
This commit is contained in:
@@ -66,22 +66,11 @@
|
||||
if (anchor != '')
|
||||
$.scrollTo('#'+anchor, 1200, {offset: -100});
|
||||
|
||||
// AutoComplete Search
|
||||
$('input[name="filtername"]').autocomplete(moduleList, {
|
||||
minChars: 0,
|
||||
width: 310,
|
||||
matchContains: true,
|
||||
highlightItem: true,
|
||||
formatItem: function(row, i, max, term) {
|
||||
var image = '../modules/'+row.name+'/logo.gif';
|
||||
if (row.image != '')
|
||||
image = row.image;
|
||||
return '<img src="'+image+'" style="float:left;margin:5px;width:16px;height:16px"><strong>'+row.displayName+'</strong>'+((row.author != '') ? ' ' + by + ' ' + truncate_author(row.author) : '') + '<br /><span style="font-size: 80%;">'+ row.desc +'</span><br/><div style="height:15px;padding-top:5px">'+ row.option +'</div>';
|
||||
},
|
||||
formatResult: function(row) {
|
||||
return row.displayName;
|
||||
}
|
||||
$('#moduleQuicksearch').keyup(function() {
|
||||
console.log(this.value);
|
||||
$.uiTableFilter($('#moduleContainer').find('table'), this.value);
|
||||
});
|
||||
|
||||
$('input[name="filtername"]').result(function(event, data, formatted) {
|
||||
$('#filternameForm').submit();
|
||||
});
|
||||
|
||||
@@ -75,12 +75,7 @@
|
||||
<div class="list-group">
|
||||
<form id="filternameForm" method="post" class="list-group-item form-horizontal">
|
||||
<div class="input-group col-lg-12">
|
||||
<input type="text" value="" name="filtername" autocomplete="off" class="ac_input">
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default" type="submit">
|
||||
<i class="icon-search"></i> {l s='Search'}
|
||||
</button>
|
||||
</span>
|
||||
<input placeholder="{l s='Search'}" type="text" value="" name="moduleQuicksearch" id="moduleQuicksearch" autocomplete="off" />
|
||||
</div>
|
||||
</form>
|
||||
<a class="list-group-item {if isset($categoryFiltered.favorites)}active{/if}" href="{$currentIndex}&token={$token}&filterCategory=favorites">
|
||||
|
||||
Reference in New Issue
Block a user