Files
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -05:00

20 lines
831 B
JavaScript

function to_change_taxonomy(element)
{
//select the default category (0)
jQuery('#to_form #cat').val(jQuery("#to_form #cat option:first").val());
jQuery('#to_form').submit();
}
var convArrToObj = function(array){
var thisEleObj = new Object();
if(typeof array == "object"){
for(var i in array){
var thisEle = convArrToObj(array[i]);
thisEleObj[i] = thisEle;
}
}else {
thisEleObj = array;
}
return thisEleObj;
}