Code: Select all
RefreshSelectBox()
Error: cannot call methods on multiselect prior to initialization; attempted to call method 'getChecked'
Code: Select all
$('#searchform').submit(function() {
//if($('#SubLanguageID').attr('multiple') != 'multiple') {return false;}
var idsublanguage = $("#SubLanguageID").multiselect("getChecked").map(function(){return this.value}).get().join(",");
$("#SubLanguageID").multiselect("getChecked").removeAttr('checked');
$('#SubLanguageID').append( new Option('selected',idsublanguage,true,true) );
});
$('#SubLanguageID').attr('multiple', 'multiple');
$('#SubLanguageID').multiselect({
header: false,
height: 350,
minWidth: 120,
show: ['slide', 300],
hide: ['explode', 200],
noneSelectedText: 'Language',
selectedText: '# selected',
beforeclose: function(){
//var idsublanguage = $("input:checked").map(function(){ if(this.value != 'on') return this.value}).get().join(",");
},
click: function(event, ui){
RefreshSelectBox();
},
}
);
$('#SubLanguageID').multiselect("refresh");
RefreshSelectBox();
/*
var selected = $('#SubLanguageID option:selected').val();
var splitted = selected.split(",")
if(splitted[1]) {
$("input[name=multiselect_SubLanguageID]:checked").removeAttr('checked');
$("input[value='"+selected+"']").removeAttr('checked');
$.each( splitted,function(key,val) {
$("input[value="+val+"]").attr('checked', true);
});
$('#SubLanguageID').multiselect("refresh");
}
*/
Do you mean the problem might be originated externally in some external code/resource you include by reference?I didnt change much things, the problem might be with CloudFlare and minifying CSS/JS.
Thanks Oss, but problem still remains.guys, please try now and let me know. I didnt change much things, the problem might be with CloudFlare and minifying CSS/JS.
Thanks! It works indeed. For the time being, this is a good temporary solution, till problem is solved permanently.I just found out that if I point to the language box and use the wheel of my mouse I can scroll up & down the languages and select the one I desire. Not as good as a drop down list but for the moment that will do...
Users browsing this forum: No registered users and 106 guests