summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--AUTHORS1
-rw-r--r--chrome/browser/resources/history.js6
2 files changed, 6 insertions, 1 deletions
diff --git a/AUTHORS b/AUTHORS
index fdef97c..6a99fed 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -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);