search.common.js
1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
$(document).ready(function() {
$("#brandopen").click(function() {
$("#brandArea").addClass('expand_brands');
$("#brandclose").show();
$("#brandopen").hide();
return false;
});
$("#brandclose").click(function() {
$("#brandArea").removeClass('expand_brands');
$("#brandclose").hide();
$("#brandopen").show();
return false;
});
$("#searchopen").click(function(){
$("#parameterMini").hide();
$("#searchmore").slideDown("normal");
$("#searchopen").hide();
$("#searchclose").show();
return false;
});
$("#searchclose").click(function(){
$("#searchmore").slideUp("normal",function(){
$("#a1").show();
$("#parameterMini").show();
});
$("#searchopen").show();
$("#searchclose").hide();
return false;
});
if(typeof(search_price_from) == 'undefined'){
search_price_from = 10;
}
if(typeof(search_price_to) == 'undefined'){
search_price_to = 1000;
}
if(typeof(search_price_step) == 'undefined'){
search_price_step = 10;
}
$("#tree").treeview({
animated : "fast",
collapsed : true,
unique : true,
//persist: "cookie",
toggle : function() {
window.console && console.log("%o was toggled", this);
}
});
});
var stockTimeout = null;
function stockSelectIn(flag) {
if (stockTimeout != null) {
window.clearTimeout(stockTimeout);
}
var libox="#box"+flag;
$(libox).show();
}
function stockSelectOut(flag) {
stockTimeout = window.setTimeout(function() {
var libox="#box"+flag;
$(libox).hide();
}, 1);
}
QRecommend = {
sort : 0,
url:'',
recommend: function(page, obj)
{
QGlobal.Page.QSend_Url = this.url;
QGlobal.Page.QItem = 'recommendList';
QGlobal.Page.getList(page + '&sort=' + this.sort, obj);
}
};