Issue #496468 by c4rl: Allow admin to specify number of groups per content type for...
authorc4rl
Sun, 9 Oct 2011 06:26:08 +0000 (23:26 -0700)
committerGrayside
Sun, 9 Oct 2011 06:26:08 +0000 (23:26 -0700)
og.js

diff --git a/og.js b/og.js
index 9f209b0..15463aa 100644 (file)
--- 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');
   };
 }