Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/aardvark.js

Issue 8792151: Label naming (Closed)
Patch Set: Created Nov. 12, 2012, 3:51 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/content/overlay.xul ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/aardvark.js
===================================================================
--- a/lib/aardvark.js
+++ b/lib/aardvark.js
@@ -334,10 +334,10 @@
this.selectedElem = elem;
this.prevSelectionUpdate = Date.now();
- let border = this.boxElem.getElementsByClassName("border")[0];
- let label = this.boxElem.getElementsByClassName("label")[0];
- let labelTag = this.boxElem.getElementsByClassName("labelTag")[0];
- let labelAddition = this.boxElem.getElementsByClassName("labelAddition")[0];
+ let border = this.boxElem.getElementsByClassName("ehh-border")[0];
+ let label = this.boxElem.getElementsByClassName("ehh-label")[0];
+ let labelTag = this.boxElem.getElementsByClassName("ehh-labelTag")[0];
+ let labelAddition = this.boxElem.getElementsByClassName("ehh-labelAddition")[0];
if (this.boxElem.parentNode)
this.boxElem.parentNode.removeChild(this.boxElem);
@@ -355,9 +355,9 @@
// If there is not enough space to show the label move it up a little
if (pos.bottom < wndHeight - 25)
- label.className = "label";
+ label.className = "ehh-label";
else
- label.className = "label onTop";
+ label.className = "ehh-label onTop";
doc.documentElement.appendChild(this.boxElem);
« no previous file with comments | « chrome/content/overlay.xul ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld