I'm creating a directory where I don't want listings to be in more than one category, so I'm trying to remove the "Additional category" fields from the add/modify link forms.
I've removed the fields from the add form, modified add.php to remove the references to the additional categories.
I've also changed ajax.js as below:
and removed the lines referring to additional categories from the top of categories.enables.js.php and altered onchangeCategoties to just return without doing anything.Code:// AjaxRequest('ajax.php?cmd=fetch_pricing&cat=' + cat + "&cat1=" + cat1 + "&cat2=" + cat2 + "&periodprice=" + periodprice, 'UpdatePricing'); AjaxRequest("ajax.php?cmd=fetch_pricing&cat=" + cat + "&periodprice=" + periodprice, 'UpdatePricing');
Now when I load the page and try to add a link, the "Listing Type" field isn't populated, it just changes to be blank. I can see the following AJAX requests when I change categories:
I'm also seeing the following JavaScript error, but the json.js file is beyond my JS knowledge:Code:POST /ajax.php?cmd=fetch_sub_category&cat=4&selected_cat=cat&div_tag=cat_div POST /ajax.php?cmd=fetch_pricing&cat=0&periodprice=Please%20select%20category%20first%20! POST /ajax.php?cmd=fetch_pricing&cat=0&periodprice=%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0 POST /ajax.php?cmd=fetch_sub_category&cat=5&selected_cat=-1&div_tag=cat_div
Any ideas?Code:Error: too much recursion Source File: /themes/worldex/json.js Line: 71


