In annotation tooltip, don't claim 'doubleclick to edit' if not editable (fixes #348)

This commit is contained in:
rlx 2012-03-07 12:33:00 +00:00
parent 1d8119df4f
commit f317e6ccf0

View file

@ -123,10 +123,12 @@ Ox.ArrayEditable = function(options, self) {
self.options.tooltipText self.options.tooltipText
? self.options.tooltipText(item) + '<br>' ? self.options.tooltipText(item) + '<br>'
: '' : ''
) + 'Click to select' + ( ) + (
item.editable self.options.editable
? ', doubleclick to edit' ? 'Click to select' + (
: '' item.editable ? ', doubleclick to edit' : ''
)
: ''
), ),
type: self.options.type, type: self.options.type,
value: item.value, value: item.value,