- add tooltips for annotation buttons

- change collapsed annotation icon
This commit is contained in:
Simon Kornblith 2007-03-14 00:52:11 +00:00
parent 735aab1de1
commit 5833b02057
3 changed files with 10 additions and 3 deletions

View File

@ -682,11 +682,11 @@ Zotero.Annotation.prototype.displayWithAbsoluteCoordinates = function(absX, absY
this.pushpinDiv.style.padding = "0";
this.pushpinDiv.style.display = "block";
this.pushpinDiv.style.position = "absolute";
this.pushpinDiv.style.MozOpacity = 0.9;
this.pushpinDiv.style.cursor = "pointer";
// generate pushpin image
var img = this.document.createElement("img");
img.src = "chrome://zotero/skin/annotation-hidden.png";
img.title = Zotero.getString("annotations.expand.tooltip");
img.addEventListener("click", function() {
me.setCollapsed(false);
}, false);
@ -763,6 +763,7 @@ Zotero.Annotation.prototype._addChildElements = function() {
// close image
var img = this.document.createElement("img");
img.src = "chrome://zotero/skin/annotation-close.png";
img.title = Zotero.getString("annotations.close.tooltip");
img.addEventListener("click", function(event) {
if(me._confirmDelete(event)) {
me._delete();
@ -783,6 +784,7 @@ Zotero.Annotation.prototype._addChildElements = function() {
// move image
this.moveImg = this.document.createElement("img");
this.moveImg.src = "chrome://zotero/skin/annotation-move.png";
this.moveImg.title = Zotero.getString("annotations.move.tooltip");
this.moveImg.addEventListener("click", function(e) {
me._startMove(e);
}, false);
@ -791,6 +793,7 @@ Zotero.Annotation.prototype._addChildElements = function() {
// hide image
var img = this.document.createElement("img");
img.src = "chrome://zotero/skin/annotation-hide.png";
img.title = Zotero.getString("annotations.collapse.tooltip");
img.addEventListener("click", function(event) {
me.setCollapsed(true);
}, false);
@ -804,7 +807,7 @@ Zotero.Annotation.prototype._addChildElements = function() {
this.grippyDiv.style.position = "absolute";
this.grippyDiv.style.right = "0px";
this.grippyDiv.style.bottom = "0px";
this.grippyDiv.style.cursor = "move";
this.grippyDiv.style.cursor = "se-resize";
var img = this.document.createElement("img");
img.src = "chrome://zotero/skin/annotation-grippy.png";
img.addEventListener("mousedown", function(event) {

View File

@ -353,4 +353,8 @@ citation.singleSource = Single Source...
report.title.default = Zotero Report
annotations.confirmClose.title = Are you sure you want to close this annotation?
annotations.confirmClose.body = All text will be lost.
annotations.confirmClose.body = All text will be lost.
annotations.close.tooltip = Delete Annotation
annotations.move.tooltip = Move Annotation
annotations.collapse.tooltip = Collapse Annotation
annotations.expand.tooltip = Expand Annotation

Binary file not shown.

Before

Width:  |  Height:  |  Size: 462 B

After

Width:  |  Height:  |  Size: 820 B