---
 src/app/views/templates/content_selection.haml |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/app/views/templates/content_selection.haml 
b/src/app/views/templates/content_selection.haml
index 931c7d6..174366b 100644
--- a/src/app/views/templates/content_selection.haml
+++ b/src/app/views/templates/content_selection.haml
@@ -31,6 +31,15 @@
           $('#package_selection_list').hide();
           $('#add_software_button').show();
         });
+        //select all packages in collection
+        $(".softwaregroups").click(function() {
+          console.log($(this).attr('checked'));
+          if ($(this).attr("checked") === true) {
+            
$(this).parent().siblings("ul").find("input[type='checkbox']").attr("checked","checked");
+          } else {
+            
$(this).parent().siblings("ul").find("input[type='checkbox']").removeAttr("checked");
+          }
+        });
       });
     });
   });
-- 
1.7.2.3

_______________________________________________
deltacloud-devel mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/deltacloud-devel

Reply via email to