Skip to content

Commit

Permalink
Merge pull request #2345 from bbuckingham/select_library
Browse files Browse the repository at this point in the history
965776 - allow library to be selectable
  • Loading branch information
bbuckingham committed May 22, 2013
2 parents e6a3360 + c2b2b66 commit 2256eb1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 0 additions & 1 deletion app/assets/javascripts/widgets/path_selector.js
Expand Up @@ -41,7 +41,6 @@ KT.path_select = function(div_id, name, environments, options_in){
init = function(){
div = $('#' + KT.common.escapeId(div_id));
paths_id = "path_select_" + name;
options.library_select = default_opt(options_in.library_select, true);
options.inline = default_opt(options_in.inline, false);
options.activate_on_click = default_opt(options_in.activate_on_click, false);
options.select_mode = default_opt(options_in.select_mode, 'none');
Expand Down
3 changes: 2 additions & 1 deletion app/controllers/distributors_controller.rb
Expand Up @@ -253,7 +253,8 @@ def edit
# Stuff into var for use in spec tests
@locals_hash = { :distributor => @distributor, :editable => @distributor.editable?,
:releases => releases, :releases_error => releases_error, :name => controller_display_name,
:environments => environment_paths(library_path_element, environment_path_element("distributors_readable?")) }
:environments => environment_paths(library_path_element("distributors_readable?"),
environment_path_element("distributors_readable?")) }
render :partial => "edit", :locals => @locals_hash
end

Expand Down
6 changes: 4 additions & 2 deletions app/controllers/systems_controller.rb
Expand Up @@ -318,7 +318,8 @@ def edit
# Stuff into var for use in spec tests
@locals_hash = { :system => @system, :editable => @system.editable?,
:releases => releases, :releases_error => releases_error, :name => controller_display_name,
:environments => environment_paths(library_path_element, environment_path_element("systems_readable?")) }
:environments => environment_paths(library_path_element("systems_readable?"),
environment_path_element("systems_readable?")) }
render :partial => "edit", :locals => @locals_hash
end

Expand Down Expand Up @@ -385,7 +386,8 @@ def show
# Stuff into var for use in spec tests
@locals_hash = { :system => @system, :editable => @system.editable?,
:releases => releases, :releases_error => releases_error, :name => controller_display_name,
:environments => environment_paths(library_path_element, environment_path_element("systems_readable?"))}
:environments => environment_paths(library_path_element("systems_readable?"),
environment_path_element("systems_readable?"))}

if request.xhr?
render :show_nutupane, :leyout => false, :locals => @locals_hash
Expand Down

0 comments on commit 2256eb1

Please sign in to comment.