From f317e6ccf07187aecc4b7a95ad81204f76b76553 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Wed, 7 Mar 2012 12:33:00 +0000 Subject: [PATCH] In annotation tooltip, don't claim 'doubleclick to edit' if not editable (fixes #348) --- source/Ox.UI/js/Form/Ox.ArrayEditable.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/source/Ox.UI/js/Form/Ox.ArrayEditable.js b/source/Ox.UI/js/Form/Ox.ArrayEditable.js index bc6369ea..8b6f9c03 100644 --- a/source/Ox.UI/js/Form/Ox.ArrayEditable.js +++ b/source/Ox.UI/js/Form/Ox.ArrayEditable.js @@ -123,10 +123,12 @@ Ox.ArrayEditable = function(options, self) { self.options.tooltipText ? self.options.tooltipText(item) + '
' : '' - ) + 'Click to select' + ( - item.editable - ? ', doubleclick to edit' - : '' + ) + ( + self.options.editable + ? 'Click to select' + ( + item.editable ? ', doubleclick to edit' : '' + ) + : '' ), type: self.options.type, value: item.value,