Authored by weiqingting

下拉bug修改

... ... @@ -261,6 +261,8 @@ $(document).on("change","#brandId",function(){
var id=$(this).val();
Bll.productNameArr[0]=$(this).find("option[value='"+id+"']").text();
Bll.setProductName();
$("#supplierId").val(-1).trigger("change");
$("#shopId").val(-1).trigger("change");
tabTree.isfeeze=false;
tabTree.init([{id:"",sortName:""},{id:"",sortName:""},{id:"",sortName:""},{id:"",sortName:""}]);
});
... ...
... ... @@ -53,13 +53,14 @@ dropDown.prototype = {
type: 'POST',
delay: 250,
data: function(params) {
var param={};
if(Object.prototype.toString.call(option.params)=="[object Function]"){
option.params=option.params();
param=option.params();
}
var data = $.extend({}, {
idName: params.term
}, option.params || {});
}, param || {});
return data;
},
processResults: function(data, params) {
... ...