Allow Parent Category Posting Problem/MOD?
classipress-3.3.3
I want to disallow posting in parent categories and also sub-parent categories.
I have set "Allow Parent Category Posting" to NO.
This works for the first level parent categories, but not for the second level parent categories.
This is what happens when I select a sub-parent categoty.
Schermafbeelding 2014-09-12 om 10.11.38.png
And this is how it has to be.
Schermafbeelding 2014-09-12 om 10.11.15.png
Can this be fixed by changing something to these lines of code?
classipres/includes/
js/theme-scripts.
js
Line 485 to 496
// always check if go button should be on or off, jQuery parent is used for traveling backup the category heirarchy
if ( ( allow_parent_posting === 'yes' && jQuery('#chosenCategory input:first').val() > 0) ) {
jQuery('#getcat').fadeIn();
//check for empty category option
} else if ( whenEmpty && allow_parent_posting === 'whenEmpty' && jQuery('#chosenCategory input:first').val() > 0 ) {
jQuery('#getcat').fadeIn();
//if child category exists, is set, and allow_parent_posting not set to "when empty"
} else if ( jQuery('#' + results_div_id + (level-1)).hasClass('childCategory') && jQuery(dropdown).val() > -1 && allow_parent_posting === 'no' ) {
jQuery('#getcat').fadeIn();
} else {
jQuery('#getcat').fadeOut();
}
Thanx in advance!