diff options
-rw-r--r-- | AUTHORS | 1 | ||||
-rw-r--r-- | chrome/browser/resources/history.js | 6 |
2 files changed, 6 insertions, 1 deletions
@@ -136,3 +136,4 @@ Nayan Kumar K <qtc746@motorola.com> ShankarGanesh K <blr.bmlab@gmail.com> Goutham Jagannatha <wrm364@motorola.com> Rosen Dash <rosen.dash@gmail.com> +Naveen Bobbili <qghc36@motorola.com> diff --git a/chrome/browser/resources/history.js b/chrome/browser/resources/history.js index 183f42c..e06d5ed 100644 --- a/chrome/browser/resources/history.js +++ b/chrome/browser/resources/history.js @@ -475,7 +475,8 @@ function HistoryView(model) { window.onresize = function() { self.updateEntryAnchorWidth_(); }; - self.updateEditControls_(); + this.updateEditControls_(); + this.editButtonTd_.hidden = true; this.boundUpdateRemoveButton_ = function(e) { return self.updateRemoveButton_(e); @@ -583,6 +584,9 @@ HistoryView.prototype.setPageRendered_ = function(page) { * Update the page with results. */ HistoryView.prototype.displayResults_ = function() { + // Hide the Edit Button if there are no history results to display. + this.editButtonTd_.hidden = !this.model_.getSize(); + var results = this.model_.getNumberedRange( this.pageIndex_ * RESULTS_PER_PAGE, this.pageIndex_ * RESULTS_PER_PAGE + RESULTS_PER_PAGE); |