Skip to content

Commit

Permalink
Show Always Max selected when disk_pool_copies value is 999
Browse files Browse the repository at this point in the history
Signed-off-by: Arpit Goyal <agmps17@gmail.com>
  • Loading branch information
agmps17 committed Jul 31, 2014
1 parent 7145964 commit 866798c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/views/pooling/_disk_pool_share.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@ td.centered
=spinner
td.centered
-if @partition_count > 1 and checked
-num_copies_list = options_for_select(@selection, share.disk_pool_copies - 1 )
- if share.disk_pool_copies == 999
- selected = "max"
-else
- selected = share.disk_pool_copies - 1
-num_copies_list = options_for_select(@selection, selected)
= select_tag 'extra_copies', num_copies_list,
data: { remote: true, url: pooling_engine.update_extra_copies_path(:id => share.id)},
class: 'remote-select form-control'
= spinner

0 comments on commit 866798c

Please sign in to comment.