summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--og.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/og.js b/og.js
index 9f209b0..15463aa 100644
--- a/og.js
+++ b/og.js
@@ -3,7 +3,7 @@
Drupal.behaviors.og_content_type = function() {
// Disable the group limit textarea if the content type is not a standard group post
$('input[name="og_content_type_usage"]').click(function(){
- if (!$('#edit-og-content-type-usage-group-post-standard').attr('checked')) {
+ if (!$('#edit-og-content-type-usage-group-post-standard').attr('checked') && !$('#edit-og-content-type-usage-group-post-wiki').attr('checked')) {
$('#edit-og-max-groups').attr('disabled','disabled');
} else {
$('#edit-og-max-groups').removeAttr('disabled');
@@ -11,7 +11,7 @@ Drupal.behaviors.og_content_type = function() {
});
// Initial check to see if content type is standard group post
- if (!$('#edit-og-content-type-usage-group-post-standard').attr('checked')) {
+ if (!$('#edit-og-content-type-usage-group-post-standard').attr('checked') && !$('#edit-og-content-type-usage-group-post-wiki').attr('checked')) {
$('#edit-og-max-groups').attr('disabled','disabled');
};
}