From 05b4d0cf829285055566fb54d13c51b5aaa4caaa Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 29 Jan 2012 14:59:30 +0530 Subject: [PATCH] ae singleclick --- source/Ox.UI/js/Form/Ox.ArrayEditable.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Form/Ox.ArrayEditable.js b/source/Ox.UI/js/Form/Ox.ArrayEditable.js index b8d9ee99..70861f78 100644 --- a/source/Ox.UI/js/Form/Ox.ArrayEditable.js +++ b/source/Ox.UI/js/Form/Ox.ArrayEditable.js @@ -210,7 +210,8 @@ Ox.ArrayEditable = function(options, self) { function singleclick(e) { var $target = $(e.target), - $element = $target.parents('.OxEditableElement'), + $element = $target.is('.OxEditableElement') + ? $target : $target.parents('.OxEditableElement'), position = $element.data('position'); if (!$target.is('.OxInput')) { if ($element.length) {