Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9118)

Unified Diff: chrome/browser/resources/options/cookies_list.js

Issue 7067036: Options: Remove the hidden class, since we override the hidden attribute to set (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/options/cookies_list.js
diff --git a/chrome/browser/resources/options/cookies_list.js b/chrome/browser/resources/options/cookies_list.js
index ab89c308f374181819cffcfb36e2f8b10df56e41..7567ed9b496f942b54b5c18e19699672d1f38280 100644
--- a/chrome/browser/resources/options/cookies_list.js
+++ b/chrome/browser/resources/options/cookies_list.js
@@ -101,7 +101,8 @@ cr.define('options', function() {
this.itemsChild = this.ownerDocument.createElement('div');
this.itemsChild.className = 'cookie-items';
this.infoChild = this.ownerDocument.createElement('div');
- this.infoChild.className = 'cookie-details hidden';
+ this.infoChild.className = 'cookie-details';
+ this.infoChild.hidden = true;
var remove = this.ownerDocument.createElement('button');
remove.textContent = localStrings.getString('remove_cookie');
remove.onclick = this.removeCookie_.bind(this);
@@ -237,7 +238,7 @@ cr.define('options', function() {
updateItems_: function() {
this.disableAnimation_();
this.itemsChild.textContent = '';
- this.infoChild.classList.add('hidden');
+ this.infoChild.hidden = true;
this.selectedIndex_ = -1;
this.itemList_ = [];
if (this.origin)
@@ -294,7 +295,7 @@ cr.define('options', function() {
if (itemIndex < 0 || itemIndex >= this.itemList_.length) {
this.selectedIndex_ = -1;
this.disableAnimation_();
- this.infoChild.classList.add('hidden');
+ this.infoChild.hidden = true;
this.enableAnimation_();
return;
}
@@ -304,7 +305,7 @@ cr.define('options', function() {
this.disableAnimation_();
this.itemList_[itemIndex].node.setDetailText(this.infoChild,
this.list.infoNodes);
- this.infoChild.classList.remove('hidden');
+ this.infoChild.hidden = false;
this.enableAnimation_();
// If we're near the bottom of the list this may cause the list item to go
// beyond the end of the visible area. Fix it after the animation is done.

Powered by Google App Engine
This is Rietveld 408576698