search fixed again according to devin requirements
This commit is contained in:
parent
cff77fbee5
commit
9478bb13e2
|
@ -829,31 +829,35 @@ var orbitDesktop = function(dom){
|
||||||
if($(this).val()){
|
if($(this).val()){
|
||||||
$("#app_manager .search_result").empty();
|
$("#app_manager .search_result").empty();
|
||||||
$("#app_manager #seperator").hide();
|
$("#app_manager #seperator").hide();
|
||||||
searchArray = $("#app_manager .element:not(:containsi("+$(this).val()+"))");
|
$("#app_manager .element").hide("fold","fast");
|
||||||
|
|
||||||
|
searchArray = $("#app_manager .element:containsi("+$(this).val()+")");
|
||||||
if(searchArray.length > 0){
|
if(searchArray.length > 0){
|
||||||
searchArray.each(function(){
|
|
||||||
$(this).hide("fold","fast");
|
|
||||||
})
|
|
||||||
// $("#app_manager #seperator").show();
|
|
||||||
// var i = 0;
|
|
||||||
// var $column;
|
|
||||||
// searchArray.each(function(){
|
// searchArray.each(function(){
|
||||||
// i++;
|
// $(this).hide("fold","fast");
|
||||||
// if(i == 1){
|
|
||||||
// $column = $("<div style='width:120px; float:left;'></div>");
|
|
||||||
// }
|
|
||||||
// var $newelement = $('<div class="search element w1 h1 hp vp thmc2" data-category="desktop">'+$(this).html()+'</div>');
|
|
||||||
// $column.append($newelement);
|
|
||||||
// if(i == 4){
|
|
||||||
// $("#app_manager .search_result").append($column);
|
|
||||||
// i = 0;
|
|
||||||
// }
|
|
||||||
// })
|
// })
|
||||||
// if(i != 0){
|
// $("#app_manager #seperator").show();
|
||||||
// $("#app_manager .search_result").append($column);
|
var i = 0;
|
||||||
// }
|
var $column;
|
||||||
|
searchArray.each(function(){
|
||||||
|
i++;
|
||||||
|
if(i == 1){
|
||||||
|
$column = $("<div style='width:120px; float:left;'></div>");
|
||||||
|
}
|
||||||
|
var $newelement = $('<div class="search element w1 h1 hp vp thmc2" data-category="desktop">'+$(this).html()+'</div>');
|
||||||
|
$column.append($newelement);
|
||||||
|
if(i == 4){
|
||||||
|
$("#app_manager .search_result").append($column);
|
||||||
|
i = 0;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
if(i != 0){
|
||||||
|
$("#app_manager .search_result").append($column);
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
$("#app_manager .search_result").text("No Result Found.");
|
||||||
}
|
}
|
||||||
}else{$("#app_manager .element").show("fold","fast");}
|
}else{ $("#app_manager .search_result").empty(); $("#app_manager .element").show("fold","fast");}
|
||||||
}).blur(function(){if($(this).val()=="")$(this).val("Search");});
|
}).blur(function(){if($(this).val()=="")$(this).val("Search");});
|
||||||
|
|
||||||
//for Alphabet sorting
|
//for Alphabet sorting
|
||||||
|
|
|
@ -10,13 +10,13 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="search_result" style="min-width:120px;">
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div id="holder">
|
<div id="holder">
|
||||||
<div id="group_wrapper" class="overview" content-layout="simple">
|
<div id="group_wrapper" class="overview" content-layout="simple">
|
||||||
|
<div class="search_result" style="min-width:120px;">
|
||||||
<div class="group g_sep op03" id='seperator' style="height: 516px;display:none;"></div>
|
|
||||||
|
</div>
|
||||||
|
<!-- <div class="group g_sep op03" id='seperator' style="height: 516px;display:none;"></div> -->
|
||||||
<div class="group_search" id="app_list">
|
<div class="group_search" id="app_list">
|
||||||
<!--<div class="element w1 h1 hp vp thmc2" data-category="desktop">
|
<!--<div class="element w1 h1 hp vp thmc2" data-category="desktop">
|
||||||
<span class="tile thmc2"></span>
|
<span class="tile thmc2"></span>
|
||||||
|
|
Reference in New Issue