This commit is contained in:
Wedge 2016-05-04 18:58:34 +03:00
parent 92026a09a0
commit 519e590c69
3 changed files with 4 additions and 5 deletions

View File

@ -15,7 +15,7 @@ function($scope, BuildListsService, $location, $interval, $uibModal) {
if(refresh) {
$interval.cancel(refresh);
}
refresh = $interval($scope.getBuildLists, 60000);
refresh = $interval(function() { $scope.getBuildLists() }, 60000);
}
else if(!autoreload && refresh) {
$interval.cancel(refresh);

View File

@ -84,8 +84,7 @@ class Projects::BuildListsController < Projects::BaseController
else
BuildList.where(id: build_lists.map(&:id)).update_all(group_id: build_lists[0].id) if build_lists.size > 1
flash[:notice] = notices.join('<br>').html_safe
puts root_path(anchor: "project=" + @project.name_with_owner)
redirect_to root_path(anchor: "?project=" + @project.name_with_owner)
redirect_to project_build_lists_path(@project.name_with_owner)
end
end

View File

@ -49,8 +49,8 @@
= hidden_field_tag :from_build_list_id, params[:build_list_id] if params[:build_list_id].present?
.col-xs-12.col-sm-8.col-sm-offset-2
%hr
.row.top-space
.pull-right
= button_tag type: :submit,
data: {'disable-with' => t('layout.processing')},
class: 'btn btn-primary btn-lg btn-block' do