[#369] remove unneeded code

This commit is contained in:
Alexander Machehin 2014-06-17 21:16:04 +06:00
parent 8748caea02
commit a66f6ea157
2 changed files with 1 additions and 7 deletions

View File

@ -18,12 +18,6 @@ RosaABF.controller('NewBuildListController', ['$scope', '$http', '$timeout', fun
$scope.save_to_repository_id = save_to_repository_id;
}
$scope.getPlatformClass = function(pl_id) {
if (build_platform.size() > 0 && build_for_platform_id !== pl_id) {
return 'text-muted';
}
}
$scope.needHidePlatform = function(pl_id) {
if (build_platform.size() > 0 && build_for_platform_id !== pl_id) {
return true;

View File

@ -8,7 +8,7 @@
.all_platforms{ 'ng-init' => "init('#{build_for_platform_id}', #{save_to_repository_id})" }
- availables_main_platforms.each do |pl|
%div{ 'ng-hide' => "needHidePlatform('#{pl.id}')" }
%h4{ id: "build_for_pl_#{pl.id}", class: 'build_for_pl', 'ng-class' => "getPlatformClass('#{pl.id}')" }= pl.name
%h4{ id: "build_for_pl_#{pl.id}", class: 'build_for_pl' }= pl.name
= render 'include_repos', platform: pl, build_for_platform: build_for_platform
.col-md-5
%h3= t 'activerecord.attributes.build_list.save_to_repository'