Skip to content

Commit

Permalink
rockstor#762 Added lady control on running log reading (client side)-…
Browse files Browse the repository at this point in the history
… submit button disable till end of log rendering
  • Loading branch information
MFlyer committed May 5, 2016
1 parent 22199cc commit 2aa0eef
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -98,6 +98,7 @@ LogsView = RockstorLayoutView.extend({
$('#reader_progress').text(current_percent + '%');
if (current_rows == total_rows) {
$('#reader_progress').removeClass('progress-bar-striped');
$('#live-log').removeClass('disabled'); // Log totally rendered, enable again live log request button
}

},
Expand Down Expand Up @@ -145,6 +146,7 @@ LogsView = RockstorLayoutView.extend({
},

LoadServerLogs: function() {
$('#live-log').addClass('disabled'); // prevent users from submitting multiple reading requests same time
$('#logsize').empty();
var _this = this;
var read_type = $('#read_type').val();
Expand Down

0 comments on commit 2aa0eef

Please sign in to comment.