documents panel: add tooltips

This commit is contained in:
rolux 2014-01-18 00:50:02 +00:00
parent a49c0ec276
commit aad6d26a44

View file

@ -489,6 +489,7 @@ pandora.ui.documentsPanel = function(options) {
.append( .append(
$name = Ox.EditableContent({ $name = Ox.EditableContent({
editable: editable, editable: editable,
tooltip: editable ? pandora.getEditTooltip('name') : '',
value: item.name, value: item.name,
width: width width: width
}) })
@ -527,6 +528,7 @@ pandora.ui.documentsPanel = function(options) {
}, },
height: width, height: width,
placeholder: 'No description', placeholder: 'No description',
tooltip: editable ? pandora.getEditTooltip('description') : '',
type: 'textarea', type: 'textarea',
value: item.description || '', value: item.description || '',
width: width width: width
@ -720,6 +722,7 @@ pandora.ui.documentsPanel = function(options) {
return Ox.ImageElement({ return Ox.ImageElement({
height: size.height, height: size.height,
src: src, src: src,
tooltip: 'Click to open document',
width: size.width width: size.width
}) })
.css({ .css({