From: Jan Provaznik <[email protected]>
Hotfixed rendering of collections when user clicks on "add software" (because
patch for choosing layout by request.xhr? wasn't acked)
---
.../image_factory/templates_controller.rb | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/app/controllers/image_factory/templates_controller.rb
b/src/app/controllers/image_factory/templates_controller.rb
index 0323f62..fbba625 100644
--- a/src/app/controllers/image_factory/templates_controller.rb
+++ b/src/app/controllers/image_factory/templates_controller.rb
@@ -112,7 +112,11 @@ class ImageFactory::TemplatesController <
ApplicationController
def content_selection
set_package_vars(true)
@collections = @repository_manager.groups
- render :collections
+ if request.xhr?
+ render :partial => 'software_selection', :locals => {:view =>
'collections'}
+ else
+ render :collections
+ end
end
def managed_content
--
1.7.2.3
_______________________________________________
deltacloud-devel mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/deltacloud-devel